◆ IPv6 地址的静态配置
[root@server4 ~]# 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@server4 ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=server4
GATEWAY=202.120.1.254
IPV6_DEFAULTGW=2001:da8:8003:801::1%eth0