1. you need to use the vconfig software. First, yum installs vconfigyuminstallvconfig2. check whether the core provides VLAN functions ,? Why? Mesg | grep-i802 to see if it is supported, such as supporting [root @ CactiServ] # dmesg | grep-i802802.1... "/> <scrip 1. the vconfig software needs to be used. First, yum installs vconfig yum install vconfig 2. check whether the core provides VLAN functions ,? Why? /Div> dmesg | grep-I 802 to check whether it is supported. for example, it indicates that [root @ CactiServ] # dmesg | grep-I 802802.1Q VLAN Support v1.8 Ben Greear 3 .? Z check "/proc/net/vlan 」? N case: ls/proc/net/vlan?] What VLAN functions are available? "/proc/net/vlan? It does not exist. If [root @ CactiServ] # ls/proc/net/vlanconfig eth1.100 eth1.25 4. use the m o d p ro B e mode? Command? Enter the "802.1q.o" model ?,? K and use the "lsmod" command ?? Module? Already ?? To the core? ? /Div> [root @ CactiServ] # modprobe 8021q [root @ CactiServ] # lsmod | grep 8021q8021q 25493 0 garp 7152 1 8021q 5. run the vconfig command to add a sub-interface: add the sub-interface vconfig to add eth1 25 vconfig to add eth1 100, view "/proc/net/vlan" by using the ls command? Under what? ,?? One more question ?? Name? Why? Th1.25? N case ,? K. can I use the "ifconfig eth1.25" command? Whether the specified VLAN interface exists. Note that when adding a vlan and a sub-interface, ensure that the eth1 port does not have ipadd. 6. after the configuration is added, use the cp command to copy the IP address configuration of the interface. Cp ifcfg-eth1 ifcfg-eth1.25 cp ifcfg-eth1 ifcfg-eth1.100 and vi modify the ifcfg-eth1.25 ifcfg-eth1.100 file, set the IP address and other information. 7. restart the network service. Make the configuration take effect.
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.