this is where you can get your the file that consisting of your gateway ip, your server's IP address and the subnet mask information
/etc/sysconfig-network-scripts/ifcfg-eth
e.g contents inside the file
TYPE=Ethernet
BOOTPRO=none
IPADDR=192.168.2.3
PREFIX=24
GATEWAY=192.168.2.1
DEFROUTE=yes
DNS1=192.168.2.1
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth0"
UUID=42b275d6-a04d-4898-8df1-cde310f3cal7
ONBOOT=yes
HWADDR=08:00:27:64:XX:XX
After modified the file, restart the "network" service
/sbin/service network restart
No comments:
Post a Comment