
SW-1
system-view
undo info-center enable
sysname SW-1
vlan batch 10 20
interface Ethernet 0/0/1
port link-type access
port default vlan 10
quit
interface Ethernet 0/0/2
port link-type access
port default vlan 20
quit
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
quit
quit
save
SW-2
system-view
undo info-center enable
sysname SW-2
vlan batch 30 40
interface Ethernet 0/0/1
port link-type access
port default vlan 30
quit
interface Ethernet 0/0/2
port link-type access
port default vlan 40
quit
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan 30 40
quit
quit
save
RS-1
system-view
undo info-center enable
sysname RS-1
vlan batch 10 20
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
quit
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
quit
quit
save
RS-2
system-view
undo info-center enable
sysname RS-1
vlan batch 30 40
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 30 40
quit
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 30 40
quit
quit
save
R-1
system-view
undo info-center enable
sysname R-1
interface GigabitEthernet0/0/0.1
ip address 192.8.1.254 24
dot1q termination vid 10
arp broadcast enable
quit
interface GigabitEthernet0/0/0.2
ip address 192.8.2.254 24
dot1q termination vid 20
arp broadcast enable
quit
interface GigabitEthernet0/0/1.1
ip address 192.8.3.254 24
dot1q termination vid 30
arp broadcast enable
quit
interface GigabitEthernet0/0/1.2
ip address 192.8.4.254 24
dot1q termination vid 40
arp broadcast enable
quit
quit
save