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    //配置虚拟网卡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、子网掩码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值