R1#
interface Ethernet0/0
ip address 12.12.12.1 255.255.255.0
R2#
interface Ethernet0/0
ip address 12.12.12.1 255.255.255.0
SW1#
SW1(config)#int e0/0
SW1(config-if)#switchport ----> by default switch already in switchport mode
SW1(config-if)#switchport mode dynamic desirable
SW1(config-if)#des to-R1
SW1(config-if)#int e0/1
SW1(config-if)#switchport mode access
SW1(config-if)#des to-R2
Verify the switchport in SW1
SW1(config-if)#do sh int status | i Port|Et0/0|Et0/1
Port Name Status Vlan Duplex Speed Type
Et0/0 to-R1 connected 1 auto auto 10BaseTX
Et0/1 to-R2 connected 1 auto auto 10BaseTX
SW1(config-if)#do sh int e0/0 switchport
Name: Et0/0
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
...
SW1(config-if)#do sh int e0/1 switchport
Name: Et0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
R1#sh ip int brie
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 12.12.12.1 YES manual up up
R1#ping 12.12.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.12.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
No comments:
Post a Comment