Build and configure VLAN

To establish and configure the System-View the VLAN
// configuration mode [H3C] VLAN 10
// 10 to establish the VLAN [H3C-VLAN10] Port Ethernet1 / 0/19
// the Ethernet1 / 0/19 was added to 10 which VLAN [H3C-vlan10 ] name test // name for the test [H3C-vlan10] descriptio test // described as a test [H3C-vlan10] quit // exit vlan 10 [H3C] interface vlan 10 into the VLAN 300 years [H3C-Vlan-interface10] ip address configure the IP address 192.168.1.1 255.255.255.0 
  Configure VLAN 20 of [H3C] vlan 20 // build vlan 20 [H3C-vlan20] port Ethernet 1/0/10 to Ethernet 1/0/15 // to port 1/0/10 to 1/0/15 to join vlan 20 in [H3C-vlan20] name jishu [H3C-vlan20] descriptiojishu [H3C-vlan20] quit [H3C] interface vlan 20 [H3C-Vlan-interface20] ip address 192.168.2.1 255.255.255.0 [H3C-vlan10] undo port ethernet1 / 0/19 // delete inside VLAN port [H3C] undo vlan 10 // VLAN deletion ip route-static 0.0.0.0 0.0.0.0 192.168.0.1 preference 60 // build up the default route DHCP relay [H3C] dhcp-server 1 ip 192.168.8.9 // the dhcp server IP [H3C] dhcp relay information enable // start DHCP relay service [H3C] interface vlan 10 // VLAN 10 into the interfaces [H3C-Vlan-interface10] dhcp-server 1 // set vlan 10 interface to a DHCP-server  
Switch Set Password [H3C] user-interface aux 0 7 [H3C-ui-aux0-7] user privilege level 3 [H3C-ui-aux0-7] set authentication password simple yokaswich [H3C] user-interface vty 0 4 [H3C -ui-vty0-4] user privilege level 3 [H3C-ui-vty0-4] set authentication password simple yokaswich [H3C] display current-configuration // View configuration [H3C] save // ​​save the configuration

Reproduced in: https: //blog.51cto.com/14216988/2409709

Guess you like

Origin blog.csdn.net/weixin_33859844/article/details/93033722