LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-15-2015, 07:15 AM   #1
stella1051
LQ Newbie
 
Registered: Jan 2015
Location: Canada
Posts: 23

Rep: Reputation: Disabled
Question set Ip Address manually in centos


I am novice in Linux.
I installed CentOs 6.4 in VMware work station.
I want to configure Ip address manually from GUI and following this tutorial https://www.howtoforge.com/perfect-s...ot-ispconfig-3
When I change drop-down box to manually the Apply button changes to gray.
So what should I do?
Thanks for reply and sorry for my bad English.

Last edited by stella1051; 01-15-2015 at 09:35 AM. Reason: add a link I am following
 
Old 01-15-2015, 07:50 AM   #2
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
Sorry, not familiar with guis, but can tell you how to do it from the command line.

First, make sure you are on the console. If you make any mistakes, you can loose connectivity to the server. Before editing any file, you probably want to make a backup copy. For example, cp network network.bak.

If you talking about getting rid of Networkmanager then do:
  1. Open a terminal window
  2. cd /etc/sysconfig
  3. Edit the network file and make sure it least has three lines:
    1. NETWORKING=yes
    2. HOSTNAME=your.fqdn
    3. GATEWAY=ip_of_your_default_route
  4. cd network-scripts
  5. Edit the ifcfg-eth0 file.
    1. Change BOOTPROTO to static
    2. Change NM_CONTROLLED to no
    3. Add IPPADR=your_ip_address
    4. Add NETMASK=your-netmask
    5. Make sure ONBOOT is set to yes
  6. Run service network restart

You may also want to cd /etc/dbus-1/system.d and remove NetworkManager.conf and all nm-*.conf files. You can then also remove the NetworkManager rpms.

That should get you pointed in the correct direction.
 
1 members found this post helpful.
Old 01-15-2015, 08:02 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,466

Rep: Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830Reputation: 5830
Did you use the add button to actually add in IP address?
 
1 members found this post helpful.
Old 01-15-2015, 09:21 AM   #4
stella1051
LQ Newbie
 
Registered: Jan 2015
Location: Canada
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks both of you.
Yes,I use Add button,but the Apply button turns to gray.
I am following this tutorial and I work on VMware work station.
https://www.howtoforge.com/perfect-s...ot-ispconfig-3
I want to configure Ip static.
Is your way suitable ?

Last edited by stella1051; 01-15-2015 at 10:15 AM.
 
Old 01-15-2015, 11:33 AM   #5
GunFighT
Member
 
Registered: May 2014
Location: Romania
Distribution: Debian/Ubuntu, Rocky Linux
Posts: 53

Rep: Reputation: Disabled
Hello,
If you can`t config the interface via Gnome, try to config the interface via terminal after instalation.
Here is a example of IP Static configuration:
Code:
nano /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:01:23:45:67:89
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.2
GATEWAY=192.168.1.1
USERCTL=no
DNS1=8.8.8.8
DNS2=8.8.4.4
 
1 members found this post helpful.
Old 01-15-2015, 11:39 AM   #6
stella1051
LQ Newbie
 
Registered: Jan 2015
Location: Canada
Posts: 23

Original Poster
Rep: Reputation: Disabled
When I use this I can not connect to the internet
I use VMware workstation.
I can not download and istall packages.
How I can change IP manually and have internet connetion?
 
Old 01-16-2015, 11:37 AM   #7
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
You have to edit the files. You've been given a couple of examples. You need to do that before you can connect to the Internet. Give us details about the steps you are taking and where you are having a problem. For example, do you know how to open a terminal window? If not, in a graphical interface (a vnc session for example), right click on the desktop. Then select "Open in Terminal." Another method is to use an ssh client such as putty to connect to your server. Can you get either of those working?
 
Old 01-16-2015, 12:12 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by stella1051 View Post
Thanks both of you.
Yes,I use Add button,but the Apply button turns to gray.
Yes, it will turn grey until you enter all of the required information. IP, gateway, subnet mask, and DNS. Have you entered all of those? Are your entries valid?

---------- Post added 01-16-15 at 10:13 AM ----------

Quote:
Originally Posted by stella1051 View Post
When I use this I can not connect to the internet
Then you must have set something wrong. If you want us to help you you need to tell us what you're doing. WHAT values are you using? Are you sure they're right?
 
Old 12-10-2016, 04:53 AM   #9
gov_1107
LQ Newbie
 
Registered: Dec 2016
Posts: 4
Blog Entries: 1

Rep: Reputation: Disabled
Please configure the IPs in cli mode.


ifconfig eth0 192.168.1.0 netmask 255.255.255.0
ip route add default via 192.168.1.1 dev eth0

I think you are configured vmware network settings as 'NAT'. Please change it to Bridged network. So internet also work.
 
  


Reply

Tags
centos6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up Multiple SSL Certificates On a CentOS VPS With Apache Using One IP Address LXer Syndicated Linux News 0 06-15-2014 10:26 PM
[SOLVED] Slax USB question: Wireless - do I manually set the IP address? Robert.Thompson Slackware 5 02-01-2011 05:58 PM
manually determining ip address ranges kaplan71 Linux - Networking 6 09-08-2009 07:00 PM
Manually assigning ip address using Slackware mpdsal Linux - Newbie 3 10-24-2006 03:26 PM
manually specifying IP address bd1308 Linux - Networking 4 08-31-2005 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration