[root@jbxue ~]# vi /etc/sysconfig/network-scripts/ifcfg-
eth0 # broadcom corporation netxtreme bcm5704 gigabit ethernet device=eth0 bootproto=none hwaddr=00:09:3d:22 ...
ipv6 地址的静态配置
[root@jbxue ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
# broadcom corporation netxtreme bcm5704 gigabit ethernet
device=eth0
bootproto=none
hwaddr=00:09:3d:22:e1:40
ipaddr=202.120.1.1
netmask=255.255.255.240
onboot=yes
gateway=202.120.1.254
type=ethernet
userctl=no
ipv6init=yes
peerdns=yes
ipv6addr=2001:da8:8003:801:202:120:1:1
[root@jbxue ~]# vi /etc/sysconfig/network
networking=yes
networking_ipv6=yes
hostname=server4
gateway=202.120.1.254
ipv6_defaultgw=2001:da8:8003:801::1%eth0