open /etc/sysconfig/network-scripts/ifcfg-eth0 file.
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
#!/bin/sh
#>>>Device type: ethernet
#>>>Variable declarations:
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=255.255.255.255
GATEWAY=192.168.0.1
# Whether to make available after boot
# or enable at root's consent
ONBOOT=no
# PROTO = dhcp, none
#>>>End variable declarations
No comments:
Post a Comment