Solaris系统下面配置网卡的ipv6地址

版权声明:如有问题可以加入QQ群:805652065,互相学习讨论 https://blog.csdn.net/zhangmingcai/article/details/82796344

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    //配置虚拟网卡lo0的ipv6地址

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、子网掩码

猜你喜欢

转载自blog.csdn.net/zhangmingcai/article/details/82796344
今日推荐