Linux Nic binding and multi-vlan implementation

Source: Internet
Author: User
Linux Nic binding and multi-vlan implementation 1. first stop networkservice: # servicenetworkstop2. create bound0 virtual interface # cd/etc/sysconfig/network-scripts # touchifcfg-bound0 # viifcfg-bond0DEVICEbond0BOOTPROTOstati
Linux Nic binding and multi-vlan implementation 1. stop network service first: # service network stop2. establish bound0 virtual interface # cd/etc/sysconfig/network-scripts # touch ifcfg-bound0 # vi ifcfg-bond0DEVICE = bond0BOOTPROTO = staticONBOOT = yesUSERCTL = noTYPE = Ethernet 3. set the bound0 slave interface # vi ifcfg-eth0 DEVICE = eth0 defaults BOOTPROTO = staticONBOOT = yesHOTPLUG = noMASTER = bond0SLAVE = yes # vi ifcfg-eth1DEVICE = eth1BOOTPROTO = staticONBOOT = yesHOTPLUG = noMASTER = yes # vi ifcfg-eth2DEVICE = eth2BOOTPROTO = staticONBOOT = yesHOTPLUG = noMASTER = bond0SLAVE = yes # vi ifcfg-eth3 DEVICE = eth3BOOTPROTO = staticONBOOT = yesHOTPLUG = noMASTER = bond0SLAVE = yes
4. set the bound0 slave interface # vim/etc/modprobe. conf alias eth0 bnx2alias eth1 unzip eth2 bnx2alias eth3 bnx2alias unzip Zookeeper without using usb0 cdc_etherinstall bond0/sbin/modprobe bonding-o bond0 miimon = 100 mode = 4 # ----- mode = 4 is the standard 802.3ad www.2cto.com # Begin Dell MD Modificationoptions scsi_dh_rdac blacklist = "DELL: MD3000, DELL: MD3000i "# End Dell MD Modificationalias pcspkr off
5. load bound0 # modprob bound06. create vlan build vlan2 # cd/etc/sysconfig/network-scripts # touch ifcfg-bound0.2 # ---- create vlan2 # vi ifcfg-bond0.2DEVICE = bond0.2BOOTPROTO = staticONBOOT = yesUSERCTL = noVLAN = yesIPADDR = 2.2.2.2NETMASK = 255.255.255.0 create vlan3 # cd/etc/sysconfig/network-scripts # touch ifcfg-bound0.3 # ---- create vlan2 # vi ifcfg-bond0.3DEVICE = drivers = staticONBOOT = yes www.2cto.com USERCTL = noVLAN = yesIPADDR = 3.3.3. 3 NETMASK = 255.255.255.0 7. add the bond loading option to the boot option [root @ MCDBKP01 network-scripts] # more/etc/rc. local #! /Bin/sh # This script will be executed * after * all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. modprobe bonding load bonding module service network restart save exit 8. restart the network service and add default gatewayGATEWAY = X in/etc/sysconfig/network. x. x. X www.2cto.com #/etc/init. d/network restart: After configuring ifconifg on this server, you can see the IP addresses of all VLANs and the route command to view all route switch configurations: the switch is bound to the corresponding port using the standard 802.3ad protocol for static binding of active Enable initiation of LACP negotiation on a port on Enable static link aggregation on this port passive Disable initiation of LACP negotiation on a port
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.