Quote:
Originally Posted by cooljkb14
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.