Feb 5, 2007 #1 toraj58 Technical User Dec 10, 2006 15 IR how to configure IP, gateway, dns using command line in redhat? and to which files those information are appended?
how to configure IP, gateway, dns using command line in redhat? and to which files those information are appended?
Feb 5, 2007 #2 QatQat IS-IT--Management Nov 16, 2001 1,031 IT ifconfig utility will do that for you. example foe eth0 Code: ifconfig eth0 192.168.1.3 netmask 255.255.255.0 up this will set ip address and netmask Code: route add default gw 192.168.1.1 this will configure your default gateway. I suggest anyway that you edit your config files directly and set all values there /etc/sysconfig/network-script/ holds all you interfaces' config files. So edit the ifcfg-eth0 file to permanently set address and gateway for eth0 Your DNS server settings are instead in the file /etc/resolv.conf Cheers QatQat Life is what happens when you are making other plans. Upvote 0 Downvote
ifconfig utility will do that for you. example foe eth0 Code: ifconfig eth0 192.168.1.3 netmask 255.255.255.0 up this will set ip address and netmask Code: route add default gw 192.168.1.1 this will configure your default gateway. I suggest anyway that you edit your config files directly and set all values there /etc/sysconfig/network-script/ holds all you interfaces' config files. So edit the ifcfg-eth0 file to permanently set address and gateway for eth0 Your DNS server settings are instead in the file /etc/resolv.conf Cheers QatQat Life is what happens when you are making other plans.
Feb 5, 2007 Thread starter #3 toraj58 Technical User Dec 10, 2006 15 IR tnx alot qatqat Upvote 0 Downvote