12.07.2015 Views

BROCADE IP PRIMER

BROCADE IP PRIMER

BROCADE IP PRIMER

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 10: Routing BasicsLet's start with Switch A:BR-SwitchA#conf tBR-SwitchA(config)#int e 1BR-SwitchA(config-if-e1000-1)#ip address 192.168.1.1/30BR-SwitchA(config-if-e1000-1)#route-onlyPay close attention to that last command. The route-only command tells theswitch that you do not want interface e 1 to function as a Layer 2 switch port.Similar configurations are needed for Switch B:BR-SwitchB#conf tBR-SwitchB(config)#int e 1BR-SwitchB(config-if-e1000-1)#ip address 192.168.1.2/30BR-SwitchB(config-if-e1000-1)#route-onlyBR-SwitchB(config)#int e 2BR-SwitchB(config-if-e1000-2)#ip address 192.168.2.2/30BR-SwitchB(config-if-e1000-2)#route-onlyAnd for Switch C:BR-SwitchC(config)#int e 1BR-SwitchC(config-if-e1000-1)#ip address 192.168.2.1/30BR-SwitchC(config-if-e1000-1)#route-onlyThe route-only command can also be used in the Global config. Use caution.Make sure that this is what you want to do before you do it. VLANs, STP, everythingwe just spent the last several chapters discussing will be unavailable.Don't get too nervous. If you change your mind, you can always:BR-Switch(config)#no route-onlyThe Routing TableIn Chapter 2, we introduced you to the routing table. This is a very simple tablethat describes a network (and its accompanying mask), and the address of thegateway that will get traffic bound for that network to its destination. On a Brocadeswitch, the routing table will also tell you the cost of the route (more onthis later), and the type of the route (e.g., how it learned about this route).Let's take a look at Switch A's routing table from the previous example. Notethe command that we use:BR-SwitchA#show ip routeTotal number of <strong>IP</strong> routes: 2Start index: 1 B:BGP D:Connected R:R<strong>IP</strong> S:Static O:OSPF*:Candidate defaultDestination NetMask Gateway Port Cost Type1 192.168.1.0 255.255.255.252 0.0.0.0 1 1 D2 172.16.0.0 255.255.0.0 0.0.0.0 v10 1 D220 Brocade <strong>IP</strong> Primer

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

Saved successfully!

Ooh no, something went wrong!