2013年11月22日星期五

OSPF Between 2 Cisco 3560 Switches

I would like to connect two switches to one another, with each WS-C3560X-24P-L switch connected to one host. I would like to use a dynamic routing protocol such as OSPF between the two switches, and make sure that Switch1 can ping Host2 and Switch2 can ping Host1 and vice versa.

How can this be done using 2 Cisco 3560 Switches that have Layer 3 capability?

Host1 --------- Switch1 ---------------- Switch2 -------- Host2

Host1: 172.16.10.2 255.255.0.0
            Interface fe1/1 - connected to Switch1 - switchport access vlan 2

Switch1: VLAN 2 - 172.16.10.1 255.255.255.0
              interface g1/1 - 10.1.1.1 255.255.255.0 (connected to Switch2)

Switch2: VLAN 3 - 172.17.10.1 255.255.255.0
              interface g1/1 - 10.1.1.2 255.255.255.0 (connected to Switch1)

Host2: 172.17.10.2 255.255.0.0
            Interface fe1/1 - connected to Switch 2 - switchport access vlan 3
for very basic functionality try this on both switches:

switch1:

router ospf 10
 network  172.16.10.0 0.0.0.255 area 0

switch2:
router ospf 10

 network WS-C3560V2-48TS-S 172.17.10.0 0.0.0.255 area 0

没有评论:

发表评论