Solaris系統下面配置網絡卡的ipv6地址
1.在Solaris系統上配置網絡卡的ipv4或者ipv6地址,需要先將網絡卡啟用,才可以配置
ifconfig e1000g0 inet6 plumb up //啟用網絡卡e1000g0
ifconfig lo0 inet6 plumb up //啟用虛擬網絡卡lo0
ifconfig e1000g0 inet6 addif 2409:8088:0200:0200::0109/127 up //配置網絡卡e1000g0的ipv6地址
ifconfig lo0 inet6 addif 2409:8088::9/128 up
ifconfig lo0 inet6 addif 2409:8088::8/124 up //配置虛擬網絡卡lo0的ipv6地址
2.配置與刪除ipv6的路由資訊
#route add -inet6 default 2409:8088:0200:0200::0108 -ifp e1000g0 靜態路由
#route delete -inet6 default 2409:8088:0200:0200::0206
traceroute 2409:8088:0200:0200::0205/127
新增靜態路由命令是:
###route add -inet6 2409:8088::/34 2409:8088:200:200::206 -ifp ce1
###route delete -inet6 2409:8088::/34 2409:8088:200:200::206 -ifp ce1
3.刪除網絡卡的地址
刪除IPv6網絡卡地址的命令是:
ifconfig e1000g0 inet6 removeif 2409:8088:0200:0200::0109
ifconfig lo0 inet6 removeif 2409:8088::9
新增IPv4網絡卡地址的命令是:
ifconfig e1000g0 inet 192.168.2.3 netmask 255.255.255.0 up --新增ip、子網掩碼