纯ipv6设备的linux设备驱动程序 [英] linux device driver for pure ipv6 device

查看:129
本文介绍了纯ipv6设备的linux设备驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为纯IPv6驱动程序设计linux驱动程序.有什么方法可以使内核模块仅支持IPv6,并且只能为其分配IPv6地址? linux中设置地址的命令是什么?

I am currently designing a linux driver for a pure IPv6 driver. Is there any way to make the kernel module only support IPv6 and can only be assigned IPv6 address? What is the commands in linux to set the address?

谢谢

推荐答案

添加IP:

使用ip命令:

$sudo /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0 

使用ifconfig命令:

$sudo /sbin/ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64 

删除IP:

使用ip

$sudo /sbin/ip -6 addr del 2001:0db8:0:f101::1/64 dev eth0 

使用ifconfig

$sudo /sbin/ifconfig eth0 inet6 del 2001:0db8:0:f101::1/64

这篇关于纯ipv6设备的linux设备驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆