BY: impact72 DATE: 2007-Jun-09 21:28 SUBJECT: RE: eth0 configuration file & detailsHi ima total newbie in linux...
pcummins say:
/etc/sysconfig/network
Sample:
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=playstation2
GATEWAY=192.168.0.1
/etc/sysconfig/network-scripts/ifcfg-eth0
Sample:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
Those 3 files are all that is needed to configure it for say, a local router gateway to the Internet on a private subnet. You can command-line it with ifconfig, however it's not trivial, it's a lot easier to edit the three files and restart.
OK do something like this:
v /etc/sysconfig/network
tipp in: NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=playstation2
GATEWAY=192.168.0.1
then i pressed <esc>
then i pressed ZZ to save and close the programm...but there is a error says:
Error: /etc/sysconfig/network: No such file ore directory
I think it is because i dont know what the fileending is for:
/etc/sysconfig/network
Sample:
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=playstation2
GATEWAY=192.168.0.1
and for:
/etc/sysconfig/network-scripts/ifcfg-eth0
Sample:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
CAN you please saay me the fileending?
THX IMPACT |