LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP configuration problem in FC 10 (https://www.linuxquestions.org/questions/linux-networking-3/ip-configuration-problem-in-fc-10-a-736902/)

cooljkb14 07-01-2009 05:12 AM

IP configuration problem in FC 10
 
hi.....
i m having a problem in configuring my IP.
every time i provide an ip address, the system changes the netmask address to dns address and it wont even showing the wired network connections.
plz help me out wid this...

centosboy 07-02-2009 08:21 AM

Quote:

Originally Posted by cooljkb14 (Post 3592739)
hi.....
i m having a problem in configuring my IP.
every time i provide an ip address, the system changes the netmask address to dns address and it wont even showing the wired network connections.
plz help me out wid this...

i think i understand the query.....
change your ip address like this, as root user

Code:

ifconfig <ethX> <ipaddress> netmask <netmask>
then run

Code:

route add default gw <ipaddress>
edit /etc/sysconfig/network-scripts/ifcfg-ethX so it looks something like

Code:

DEVICE=eth0
BOOTPROTO=none
HWADDR=00:04:02:00:04:00
ONBOOT=yes
NETMASK=<netmask>
IPADDR=<ipaddress>
GATEWAY=<gateway>
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=no


add correct ips to /etc/resolv.conf


Code:

nameserver <ipaddress>
nameserver <ipaddress>

Everything in brackets is substituted with your own settings
Sorry but i dont know which distro you have as you didnt say, so these apply to redhat variants.

You can also do all this in the gui using neat or system-config-network.


All times are GMT -5. The time now is 03:50 AM.