vlan虚拟值域网的运用

[r1]in	
[r1]info-center
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip	
[r1-GigabitEthernet0/0/0.1]ip ad	
[r1-GigabitEthernet0/0/0.1]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/0.1]do	
[r1-GigabitEthernet0/0/0.1]dot1q  t	
[r1-GigabitEthernet0/0/0.1]dot1q  termination vid 2
Nov 22 2022 23:12:01-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0.1 has entered the UP state. 
[r1-GigabitEthernet0/0/0.1]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]ip ad	
[r1-GigabitEthernet0/0/0.2]ip a	
[r1-GigabitEthernet0/0/0.2]ip accounting
[r1-GigabitEthernet0/0/0.2]ip address 34.1.1.1 24
[r1-GigabitEthernet0/0/0.2]do	
[r1-GigabitEthernet0/0/0.2]dot1q t	
[r1-GigabitEthernet0/0/0.2]do	
[r1-GigabitEthernet0/0/0.2]dot1q t	
[r1-GigabitEthernet0/0/0.2]dot1q termination vid 3
[r1-GigabitEthernet0/0/0.2]
Nov 22 2022 23:14:31-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0.2 has entered the UP state. 
[r1-GigabitEthernet0/0/0.2]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]ip 	
[r1-GigabitEthernet0/0/0.3]ip ad	
[r1-GigabitEthernet0/0/0.3]ip address 23.1.1.1 24
[r1-GigabitEthernet0/0/0.3]do	
[r1-GigabitEthernet0/0/0.3]dot1q t	
[r1-GigabitEthernet0/0/0.3]dot1q termination vid 4
[r1-GigabitEthernet0/0/0.3]
Nov 22 2022 23:15:41-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0.3 has entered the UP state. 
[r1-GigabitEthernet0/0/0.3]quit
[r1]dh	
[r1]dhcp en	
[r1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip po	
[r1]ip policy-based-route
                          ^
Error:Incomplete command found at '^' position.
[r1]ip p	
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]net	
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network 12.1.1.0 ma	
[r1-ip-pool-1]network 12.1.1.0 mask 24
[r1-ip-pool-1]g	
[r1-ip-pool-1]gateway-list 12.1.1.1
[r1-ip-pool-1]dn	
[r1-ip-pool-1]dns-list 8.8.8..8
                       ^
Error: Wrong parameter found at '^' position.
[r1-ip-pool-1]quit
[r1]ip p	
[r1]ip policy-based-route
[r1]ip pool 2
Info: It's successful to create an IP address pool.
[r1-ip-pool-2]ne	
[r1-ip-pool-2]netbios-type
[r1-ip-pool-2]network 34.1.1.0 mas	
[r1-ip-pool-2]network 34.1.1.0 mask 24
[r1-ip-pool-2]g	
[r1-ip-pool-2]gateway-list 
[r1-ip-pool-2]gateway-list 34.1.1.1
[r1-ip-pool-2]dn	
[r1-ip-pool-2]dns-list 8.8.8.8
[r1-ip-pool-2]quit
[r1]ip 	
[r1]ip p	
[r1]ip pool 3
Info: It's successful to create an IP address pool.
[r1-ip-pool-3]ne	
[r1-ip-pool-3]netbios-type
[r1-ip-pool-3]network 23.1.1.0 mas	
[r1-ip-pool-3]network 23.1.1.0 mask 24
[r1-ip-pool-3]g	
[r1-ip-pool-3]gateway-list 23.1.1.1
[r1-ip-pool-3]dn	
[r1-ip-pool-3]dns-list 8.8.8.8
[r1-ip-pool-3]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dh	
[r1-GigabitEthernet0/0/0.1]dhcp se	
[r1-GigabitEthernet0/0/0.1]dhcp selectgl	
[r1-GigabitEthernet0/0/0.1]dhcp select gl	
[r1-GigabitEthernet0/0/0.1]dhcp select global 
[r1-GigabitEthernet0/0/0.1]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]dh	
[r1-GigabitEthernet0/0/0.2]dhcp se	
[r1-GigabitEthernet0/0/0.2]dhcp select gl	
[r1-GigabitEthernet0/0/0.2]dhcp select global 
[r1-GigabitEthernet0/0/0.2]quit
[r1]din	
[r1]in	
[r1]info-center
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]dh	
[r1-GigabitEthernet0/0/0.3]dhcp se	
[r1-GigabitEthernet0/0/0.3]dhcp selectgl	
[r1-GigabitEthernet0/0/0.3]dhcp select   	
[r1-GigabitEthernet0/0/0.3]dhcp select gl	
[r1-GigabitEthernet0/0/0.3]dhcp select global 
[r1-GigabitEthernet0/0/0.3]quit
[r1]dh	
[r1]dhcp en	
[r1]dhcp enable 
[r1]ip 	
[r1]ip po	
[r1]ip pool 1
[r1-ip-pool-1]ne	
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network 12.1.1.0 ma	
[r1-ip-pool-1]network 12.1.1.0 mask 24
Error:Please delete the network section first.
[r1-ip-pool-1]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.1
[r1-GigabitEthernet0/0/0.1]dh	
[r1-GigabitEthernet0/0/0.1]dhcp se	
[r1-GigabitEthernet0/0/0.1]dhcp select gl	
[r1-GigabitEthernet0/0/0.1]dhcp select global 
[r1-GigabitEthernet0/0/0.1]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.2
[r1-GigabitEthernet0/0/0.2]dh	
[r1-GigabitEthernet0/0/0.2]dhcp se	
[r1-GigabitEthernet0/0/0.2]dhcp select g	
[r1-GigabitEthernet0/0/0.2]dhcp select global 
[r1-GigabitEthernet0/0/0.2]quit
[r1]in	
[r1]info-center
[r1]interface g0/0/0.3
[r1-GigabitEthernet0/0/0.3]dh	
[r1-GigabitEthernet0/0/0.3]dhcp se	
[r1-GigabitEthernet0/0/0.3]dhcp select gl	
[r1-GigabitEthernet0/0/0.3]dhcp select global
<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]vl	
[Huawei]vlan b	
[Huawei]vlan batch 2 3 4
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]
Nov 22 2022 23:04:40-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 4, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]in	
[Huawei]info-center	
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]po	
[Huawei-Ethernet0/0/2]port l	
[Huawei-Ethernet0/0/2]port link-t	
[Huawei-Ethernet0/0/2]port link-type a	
[Huawei-Ethernet0/0/2]port link-type access 
[Huawei-Ethernet0/0/2]p	
[Huawei-Ethernet0/0/2]port d	
[Huawei-Ethernet0/0/2]port discard	
[Huawei-Ethernet0/0/2]port default v	
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei-Ethernet0/0/2]
Nov 22 2022 23:05:50-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 6, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/2]quit
[Huawei]in	
[Huawei]info-center	
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]p	
[Huawei-Ethernet0/0/3]port l	
[Huawei-Ethernet0/0/3]port link-t	
[Huawei-Ethernet0/0/3]port link-type a	
[Huawei-Ethernet0/0/3]port link-type access 
[Huawei-Ethernet0/0/3]p	
[Huawei-Ethernet0/0/3]portd
Nov 22 2022 23:06:40-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 7, th
e change loop count is 0, and the maximum number of records is 4095.	
[Huawei-Ethernet0/0/3]portd	
[Huawei-Ethernet0/0/3]portd	
[Huawei-Ethernet0/0/3]p	
[Huawei-Ethernet0/0/3]port l	
[Huawei-Ethernet0/0/3]port link-t	
[Huawei-Ethernet0/0/3]port link-type a	
[Huawei-Ethernet0/0/3]port link-type access 
[Huawei-Ethernet0/0/3]p	
[Huawei-Ethernet0/0/3]port d	
[Huawei-Ethernet0/0/3]port discard	
[Huawei-Ethernet0/0/3]port default v	
[Huawei-Ethernet0/0/3]port default vlan 3
[Huawei-Ethernet0/0/3]quit
Nov 22 2022 23:07:20-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 8, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]in	
[Huawei]info-center	
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]quit
[Huawei]in	
[Huawei]info-center	
[Huawei]interface e0/0/4
[Huawei-Ethernet0/0/4]p	
[Huawei-Ethernet0/0/4]port l	
[Huawei-Ethernet0/0/4]port link-t	
[Huawei-Ethernet0/0/4]port link-type a	
[Huawei-Ethernet0/0/4]port link-type access 
[Huawei-Ethernet0/0/4]p	
[Huawei-Ethernet0/0/4]port d	
[Huawei-Ethernet0/0/4]port discard
Nov 22 2022 23:08:00-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 9, th
e change loop count is 0, and the maximum number of records is 4095.	
[Huawei-Ethernet0/0/4]port default v	
[Huawei-Ethernet0/0/4]port default vlan 4
[Huawei-Ethernet0/0/4]quit
[Huawei]
Nov 22 2022 23:08:10-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 10, t
he change loop count is 0, and the maximum number of records is 4095.in	
[Huawei]info-center	
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]p	
[Huawei-Ethernet0/0/1]port l	
[Huawei-Ethernet0/0/1]port link-t	
[Huawei-Ethernet0/0/1]port link-type t	
[Huawei-Ethernet0/0/1]port link-type trunk 
[Huawei-Ethernet0/0/1]
Nov 22 2022 23:08:30-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 11, t
he change loop count is 0, and the maximum number of records is 4095.
[Huawei-Ethernet0/0/1]p	
[Huawei-Ethernet0/0/1]port t	
[Huawei-Ethernet0/0/1]port trunk a	
[Huawei-Ethernet0/0/1]port trunk allow-pass v	
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan a	
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all 
[Huawei-Ethernet0/0/1]
Nov 22 2022 23:08:50-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 12, t
he change loop count is 0, and the maximum number of records is 4095
PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fec5:7edd
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 12.1.1.254
Subnet mask.......................: 255.255.255.0
Gateway...........................: 12.1.1.1
Physical address..................: 54-89-98-C5-7E-DD
DNS server........................:

PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe8d:4a13
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 34.1.1.254
Subnet mask.......................: 255.255.255.0
Gateway...........................: 34.1.1.1
Physical address..................: 54-89-98-8D-4A-13
DNS server........................: 8.8.8.8

PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:febc:158b
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 23.1.1.254
Subnet mask.......................: 255.255.255.0
Gateway...........................: 23.1.1.1
Physical address..................: 54-89-98-BC-15-8B
DNS server........................: 8.8.8.8

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值