ubuntu vlan配置 (modules)


modules

//查看
    lsmod
//默認加載
    vi /etc/modules
//加載vlan模塊(IEEE8021q)
    modprobe 8021q
//移除8021q
    modprobe -r 8021q

vlan 

 

vlan

// 檢查vlan支持(有目錄為支持)
ls /proc/net/vlan/
// 安裝vlan
aptitude install vlan
// 添加協議IEEE802.1q支持(有此支持才能創建vlan網卡)
modprobe 8021q
// vi /etc/network/interface配置事例
// ======
auto p6p1.11
iface p6p1.11 inet static
        address 172.17.2.55
        netmask 255.255.255.0
        vlan-raw-device p6p1.11 // **

auto p6p1
iface p6p1 inet static
        address 172.17.2.55
        netmask 255.255.255.0
// =======

ubuntu 網絡操作

// 操作1
/etc/init.d/networking restart
// 操作2
service networking resart
    stop: Job failed while stopping
     start: Job is already running: networking
// 操作3
ifconfig p6p1 down
ifconfig p6p1 up
// 操作1、2都沒能成功
// 操作3單個關閉開啟之后ifconfig查看信息沒有改變
// 只能重新啟動炒作系統

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM