To modify host name and IP address in Linux
/etc/hosts file
create bond( /etc/sysconfig/network-scripts/ifcfg-bond0)
DEVICE=bond0
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
BONDING_OPTS="primary=eth0"
IPADDR=xx.xx.xxx.xx
NETMASK=xxx.xxx.xxx.x
GATEWAY=xx.xx.xxx.x
BROADCAST=xx.xx.xxx.xxx
configure net work(/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
USERCTL=no
BOOTPROTO=none
SLAVE=yes
MASTER=bond0
change the domine name
/etc/sysconfig/network(hostname)
/etc/hosts
service network restart
No comments:
Post a Comment