linux 添加虚拟网卡
生活随笔
收集整理的這篇文章主要介紹了
linux 添加虚拟网卡
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
vim /etc/network/interfaces
auto eth0:0 iface eth0:0 inet static address 192.168.100.2 netmask 255.255.255.0 broadcast 192.168.100.255添加路由
route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.100.1
刪除一條路由
route del -net 192.168.100.0 netmask 255.255.255.0
重啟網絡
sudo /etc/init.d/networking restart
總結
以上是生活随笔為你收集整理的linux 添加虚拟网卡的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 树莓派3开wifi热点
- 下一篇: linux route命令删除多余路由