实验二 单臂路由实验
1.路由器R的配置
Info: Current terminal monitor is off.
[R]interface GigabitEthernet 0/0/0.10 [R-GigabitEthernet0/0/0.10] [R-GigabitEthernet0/0/0.10]do
[R-GigabitEthernet0/0/0.10]dot1q t
[R-GigabitEthernet0/0/0.10]dot1q termination v [R-GigabitEthernet0/0/0.10]
[R-GigabitEthernet0/0/0.10]ip add 192.168.1.254 24 [R-GigabitEthernet0/0/0.10] [R-GigabitEthernet0/0/0.10]arp ? broadcast ARP broadcast enable learning ARP learning [R-GigabitEthernet0/0/0.10]arp b
[R-GigabitEthernet0/0/0.10]arp broadcast e [R-GigabitEthernet0/0/0.10]arp broadcast enable [R-GigabitEthernet0/0/0.10] [R-GigabitEthernet0/0/0.10]dis this [V200R003C00] #
interface GigabitEthernet0/0/0.10 dot1q termination vid 10
ip address 192.168.1.254 255.255.255.0 arp broadcast enable # return
[R-GigabitEthernet0/0/0.10] [R-GigabitEthernet0/0/0.10] [R-GigabitEthernet0/0/0.10] [R-GigabitEthernet0/0/0.10]q [R] [R] [R] [R]
[R-GigabitEthernet0/0/0.20] [R-GigabitEthernet0/0/0.20]dis this [V200R003C00] #
interface GigabitEthernet0/0/0.20 dot1q termination vid 20
ip address 192.168.2.254 255.255.255.0 arp broadcast enable # return
[R-GigabitEthernet0/0/0.20] [R-GigabitEthernet0/0/0.20]q [R] [R] [R]
[R-GigabitEthernet0/0/0.10]dot1q termination vid 10
[R]q
*down: administratively down ^down: standby (l): loopback (s): spoofing
The number of interface that is UP in Physical is 4 The number of interface that is DOWN in Physical is 2 The number of interface that is UP in Protocol is 3 The number of interface that is DOWN in Protocol is 3
Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 unassigned up down GigabitEthernet0/0/0.10 192.168.1.254/24 up up GigabitEthernet0/0/0.20 192.168.2.254/24 up up
GigabitEthernet0/0/1 unassigned down down GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s)
The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait..........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
---------------------------------------------------------------------------------------------------------------------------------
2.交换机SW的配置
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z. [Huawei]sy [Huawei]sysname sw [sw]v [sw]vlan b
[sw]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done. [sw] [sw]int
[sw]interface g
[sw]interface GigabitEthernet 0/0/1 [sw-GigabitEthernet0/0/1] [sw-GigabitEthernet0/0/1]port li [sw-GigabitEthernet0/0/1]port link-t
[sw-GigabitEthernet0/0/1]port link-type t [sw-GigabitEthernet0/0/1] [sw-GigabitEthernet0/0/1]por
[sw-GigabitEthernet0/0/1]port t [sw-GigabitEthernet0/0/1]port trunk ? allow-pass Allowed vlan
pvid Specify current port's PVID VLAN characteristics
[sw-GigabitEthernet0/0/1]port trunk a
[sw-GigabitEthernet0/0/1]port trunk allow-pass v [sw-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 [sw-GigabitEthernet0/0/1] [sw-GigabitEthernet0/0/1]dis #
interface GigabitEthernet0/0/1 port link-type trunk
port trunk allow-pass vlan 10 20 # return
[sw-GigabitEthernet0/0/1] [sw-GigabitEthernet0/0/1]q [sw] [sw]int
[sw]interface Ether [sw-Ethernet0/0/1] [sw-Ethernet0/0/1]por [sw-Ethernet0/0/1]port li
[sw-Ethernet0/0/1]port link-t
[sw-GigabitEthernet0/0/1]display this
[sw-GigabitEthernet0/0/1]port link-type trunk
[sw]interface Ethernet 0/0/1
[sw-Ethernet0/0/1]port link-type a [sw-Ethernet0/0/1] [sw-Ethernet0/0/1]por
[sw-Ethernet0/0/1]port link-type access
相关推荐: