12.07.2015 Views

BROCADE IP PRIMER

BROCADE IP PRIMER

BROCADE IP PRIMER

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Console49F Link 50F1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47Power1F 2F 3F 4F2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 4849F Link 50FPowerConsole1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 471F 2F 3F 4F2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 4849F Link 50FPowerConsole1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 471F 2F 3F 4F2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48Chapter 10: Routing BasicsIn the previous example, we configured interface e 1 on Switch A with an <strong>IP</strong>address of 192.168.1.1/30. This told the switch that it was a participatingmember of the 192.168.1.0/30 subnet. Because of that, it automaticallyadded an entry into the routing table detailing that it knows how to get to192.168.1.0/30. It has an interface that is participating in that subnet. Thesecond interface (ve 10) was configured previously to be 172.16.0.1/16. Itsconnected route is added to the table as well.Connected routes constitute the fundamental concepts of a gateway. “Youdon't know how to get there, but I'm connected to there. You can get to therethrough me.” But what happens when your gateway isn't directly connected toyour destination?Let's look at our example with hosts involved:Switch Ave 10172.16.0.1/24e1192.168.1.1/30e1192.168.1.2/30Switch Bve 20172.17.0.1/24e2192.168.2.2/30e1192.168.2.1/30Switch Cve 30172.18.0.1/24Host A172.16.0.10/24Host B172.17.0.10/24Host C172.18.0.10/24If Host A were to use Switch A as its default gateway, and Host C were to useSwitch C as its default gateway, could Host A talk to Host C? Study it carefully.No, it can't. Switch A doesn't know how to get to 172.18.0.0/16. Likewise,Switch C doesn't know how to get to 172.16.0.0/16. When we issued the showip route command, we noticed that Switch A only has two routes:192.168.1.0/30 and 172.16.0.0/16. These are the only routes it knowsabout.Similarly, if we were to issue a show ip route on Switch C, we would see connectedroutes for 192.168.2.0/30 and 172.18.0.0/16. These are the onlyroutes that Switch C knows about. How can we get Host A and Host C to talk toeach other?Static RoutesOne way to do it is with static routes. These are route statements that are manuallyconfigured on the switch. You are straight-forwardly explaining to theswitch how to get to a certain destination. Static routes are configured at theGlobal config level. Let's add a static route so Switch A knows how to get toHost C's network (172.18.0.0/16):BR-SwitchA#conf tBR-SwitchA(config)#ip route 172.18.0.0 255.255.0.0192.168.1.2222 Brocade <strong>IP</strong> Primer

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!