侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

vlan config for rhel & ubuntu

2023-10-02 星期一 / 0 评论 / 0 点赞 / 54 阅读 / 1101 字

1. vlan config for RHEL 6 # cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:17:A4:

1.  vlan config for RHEL 6

# cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:17:A4:77:04:1CTYPE=EthernetUUID=a03fe7a7-bade-4cbc-b38f-c46434104a2dONBOOT=yesNM_CONTROLLED=noBOOTPROTO=none# cat /etc/sysconfig/network-scripts/ifcfg-eth0.50 DEVICE=eth0.50BOOTPROTO=noneONBOOT=yesIPADDR=10.245.254.127PREFIX=24GATEWAY=10.245.254.1VLAN=yes

2. vlan config for ubuntu 16.04

# cat /etc/network/interfacesauto loiface lo inet loopback# Physical interface 1auto enp2s0f0iface enp2s0f0 inet manual  bond-master bond0# Physical interface 2auto enp2s0f1iface enp2s0f1 inet manual  bond-master bond0# Bond interface 0 (physical interfaces 1 and 2)auto bond0iface bond0 inet manual  bond-mode 1  bond-miimon 100  bond-slaves enp2s0f0 enp2s0f1  bond-downdelay 200  bond-updelay 200    auto bond0.50iface bond0.50 inet static  vlan-raw-device bond0  address 10.245.254.128  gateway 10.245.254.1  netmask 255.255.255.0  dns-nameservers 10.245.254.168

 

广告 广告

评论区