20201223 cisco 單臂路由
課堂資料
單臂路由器:是指與網路有單一物理或邏輯連接的路由器。
它通常用於在本地連接的主機之間轉發獨立邏輯路由域上的流量,或者方便路由表的管理、分發和中繼。
課堂練習
單臂路由


實戰練習:VRF









Last updated
Was this helpful?
單臂路由器:是指與網路有單一物理或邏輯連接的路由器。
它通常用於在本地連接的主機之間轉發獨立邏輯路由域上的流量,或者方便路由表的管理、分發和中繼。











Last updated
Was this helpful?
Was this helpful?
ip 192.168.10.1/24ip 192.168.10.1 255.255.255.0 192.168.10.254ping 192.168.10.254ping 192.168.20.254ping 192.168.20.1ip 192.168.20.1/24ip 192.168.20.1 255.255.255.0 192.168.20.254ping 192.168.10.254ping 192.168.20.254ping 192.168.10.1vlan 10vlan 20do sh vlan briefint e0/1switchport mode accessswitchport access vlan 10int e0/2switchport mode accessswitchport access vlan 20do sh vlan briefint e0/0switchport trunk encapsulation dot1qswitchport mode trunkdo sh runint e0/0no shutint e0/0.10encapsulation dot1Q 10ip add 192.168.10.254 255.255.255.0no shutint e0/0.20encapsulation dot1Q 20ip add 192.168.20.254 255.255.255.0no shutdo sh runip 192.168.10.1/24ip 192.168.10.1 255.255.255.0 192.168.10.254ping 192.168.10.254ping 192.168.20.254ping 192.168.20.1ip 192.168.20.1/24ip 192.168.20.1 255.255.255.0 192.168.20.254ping 192.168.10.254ping 192.168.20.254ping 192.168.10.1int vlan 10ip add 192.168.10.254 255.255.255.0no shutint vlan 20ip add 192.168.20.254 255.255.255.0no shutdo sh ip int briefint e0/0switchport trunk encapsulation dot1qswitchport mode trunkexitvtp mode servervtp domain ccnavlan 10vlan 20do sh vlan briefdo sh runint e0/1switchport mode accessswitchport access vlan 10int e0/2switchport mode accessswitchport access vlan 20do sh vlan briefint e0/0ip addr 192.168.1.1 255.255.255.0no shutrouter ospf 1net 192.168.1.0 0.0.0.255 area 0ping 192.168.2.1int e0/0ip addr 192.168.2.1 255.255.255.0no shutrouter ospf 1net 192.168.2.0 0.0.0.255 area 0int e0/0ip addr 192.168.3.1 255.255.255.0no shutrouter ospf 1net 192.168.3.0 0.0.0.255 area 0int e0/0ip addr 192.168.4.1 255.255.255.0no shutrouter ospf 1net 192.168.4.0 0.0.0.255 area 0ip vrf Upperip vrf Lowerint e0/0ip vrf forwarding Upperip addr 192.168.1.2 255.255.255.0no shutint e0/1ip vrf forwarding Lowerip addr 192.168.3.2 255.255.255.0no shutint e0/2no shutint e0/2.10ip vrf for Upperencapsulation dot1Q 10ip addr 56.1.1.1 255.255.255.0int e0/2.20ip vrf for Lowerencapsulation dot1Q 20ip addr 56.3.3.3 255.255.255.0do sh ip vrfdo sh ip route vrf Upper do sh ip route vrf Lowerrouter ospf 1 vrf Uppernet 192.168.1.0 0.0.0.255 area 0net 56.1.1.0 0.0.0.255 area 0router ospf 2 vrf Lowernet 192.168.3.0 0.0.0.255 area 0net 56.3.3.0 0.0.0.255 area 0ip vrf Upperip vrf Lowerint e0/0ip vrf forwarding Upperip addr 192.168.2.2 255.255.255.0no shutint e0/1ip vrf forwarding Lowerip addr 192.168.4.2 255.255.255.0no shutint e0/2no shutint e0/2.10ip vrf for Upperencapsulation dot1Q 10ip addr 56.1.1.2 255.255.255.0int e0/2.20ip vrf for Lowerencapsulation dot1Q 20ip addr 56.3.3.4 255.255.255.0do sh ip vrfdo sh ip route vrf Upper do sh ip route vrf Lowerrouter ospf 1 vrf Uppernet 192.168.2.0 0.0.0.255 area 0net 56.1.1.0 0.0.0.255 area 0router ospf 2 vrf Lowernet 192.168.4.0 0.0.0.255 area 0net 56.3.3.0 0.0.0.255 area 0