LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configure network IP via CLI? (https://www.linuxquestions.org/questions/linux-networking-3/configure-network-ip-via-cli-533300/)

SlowCoder 02-28-2007 11:43 AM

Configure network IP via CLI?
 
In FC6, what file contains the network configuration? In Slackware it was something like /etc/rc.d/rc.inetd.conf. I know I can configure it using ifconfig, but I'd like to know what the actual config file(s) are.

win32sux 02-28-2007 12:02 PM

Quote:

Originally Posted by SlowCoder
In FC6, what file contains the network configuration? In Slackware it was something like /etc/rc.d/rc.inetd.conf. I know I can configure it using ifconfig, but I'd like to know what the actual config file(s) are.

assuming things haven't changed since the RH9 days, each interface has it's own config file:
Code:

/etc/sysconfig/network-scripts/ifcfg-<interface>
for example, the configuration for eth0 would be:
Code:

/etc/sysconfig/network-scripts/ifcfg-eth0
once again, this assumes things haven't changed since RH9... oh, and IIRC the gateway is set in the /etc/sysconfig/network file...


All times are GMT -5. The time now is 10:57 AM.