valn 配置
2016-04-21 14:49
239 查看
内核修改:
/device drivers/Network device support/MAC-VLAN support
1、创建目录和文件
#cd /usr
#mkdir vlan
#cd vlan
#cp /xxx/vlan .
chmod +x vlan
cp /???/cli8795 /usr/sbin
chmod +x /usr/sbin/cli8795
2、编辑网络配置文件
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.0
2、编辑自动加载文件
vi /etc/init.d/rc.local
.....
/usr/vlan/vlan
ip link add link eth0 dev net1 type macvlan
ifconfig net1 hw ether E2:44:45:7A:E0:A8
ifconfig net1 up
ip link add link eth0 dev net2 type macvlan
ifconfig net2 hw ether D8:B8:25:CB:C0:25
ifconfig net2 up
ip link add link eth0 dev net3 type macvlan
ifconfig net3 hw ether 96:B0:5A:C9:61:0C
ifconfig net3 up
/device drivers/Network device support/MAC-VLAN support
1、创建目录和文件
#cd /usr
#mkdir vlan
#cd vlan
#cp /xxx/vlan .
chmod +x vlan
cp /???/cli8795 /usr/sbin
chmod +x /usr/sbin/cli8795
2、编辑网络配置文件
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.0
2、编辑自动加载文件
vi /etc/init.d/rc.local
.....
/usr/vlan/vlan
ip link add link eth0 dev net1 type macvlan
ifconfig net1 hw ether E2:44:45:7A:E0:A8
ifconfig net1 up
ip link add link eth0 dev net2 type macvlan
ifconfig net2 hw ether D8:B8:25:CB:C0:25
ifconfig net2 up
ip link add link eth0 dev net3 type macvlan
ifconfig net3 hw ether 96:B0:5A:C9:61:0C
ifconfig net3 up
相关文章推荐
- 使用String的HashCode作为Map主键需要注意的地方
- Educational Codeforces Round 12 B C题、
- 写文章的“技巧”
- C#使用Protocol Buffer(ProtoBuf)进行Unity中的Socket通信
- 求一个整数的二进制数中1的个数
- OpenCV函数解析 CvMemstorage
- 【默慈金数+高精度】HDU3723Delta Wave【未AC】
- 2015—2016年QS世界大学排名200强-[转]
- opencv中cvCircle的使用方法
- UI for iOS(一)-- RGB十六进制字符串转换UIColor
- 关于php中json_encode中文乱码问题
- 初始安卓_Resourse文件
- 07-图6 旅游规划 (25分)
- ts文件格式解析
- java中的运算
- Jquery实现图片的预加载与延时加载
- 手写DataSet,DataTable
- input子系统
- .Net配置中心-Zookeper版
- 报错:Could not load JDBC driver class [com.mysql.jdbc.Driver]