9. Emulating a Multiple Hop Network
Goal: Use virtual routers to emulate a multi-hop network.
Return to LANforge-ICE Cookbook
In this example, LANforge is used to emulate a live routed network by using
multiple virtual routers to form a working multi-hop network. Each virtual router
has its own routing table and can be configured to use one of many different
routing protocols. OSPF will be used in this example and traceroute will
be used to demonstrate the traversal of each hop.
- Use Netsmith to create five OSPF virtual routers.
A: From the Status tab, select the Netsmith button. |
|
B: Right-click in the Netsmith window and select New Router. |
|
C: Select the Use OSPF checkbox. |
|
D: Select OK, then create four more OSPF virtual routers. |
|
E: After creating five OSPF virtual routers, select Apply. |
|
- Create four Netsmith connections to link all of the OSPF virtual routers.
A: Right-click in the Netsmith window and select New Connection. |
|
B: Leave all the default settings and select OK. |
|
C: Create three more Netsmith connections. |
|
D: After creating four Netsmith connections, select Apply. |
|
- Assign IP addresses to either end of each of the four Netsmith connections.
A: Right-click on rddVR0 and select Modify Port. |
|
B: Set rddVR0 to 10.0.0.1/30 and select OK. |
|
C: Right-click on rddVR1 and select Modify Port. |
|
D: Set rddVR1 to 10.0.0.2/30 and select OK. |
|
E: Repeat the steps above to complete the following:
rddVR2 is 11.0.0.1/30 and rddVR3 is 11.0.0.2/30
rddVR4 is 12.0.0.1/30 and rddVR5 is 12.0.0.2/30
rddVR6 is 13.0.0.1/30 and rddVR7 is 13.0.0.2/30 |
|
- Drag each end of a Netsmith connection into a virtual router to setup the network.
- Assign IP addresses and Default Gateways to each of four physical interfaces.
- Apply all changes in Netsmith, allow OSPF time to converge, and observe routing tables.
A: After applying all Netsmith changes, right-click
on a virtual router and select Show Routing Table.
Before OSPF converges, only the directly connected networks are shown. |
|
B: After OSPF converges, each virtual router has
a complete routing table for the entire network.
Note: If you select Netsmith Apply again, this will restart all
virtual routers and OSPF will need time to converge again. |
|
- Alternative method to observe routing tables of each virtual router.
A: With OSPF virtual routers, you can
right-click on a virtual router and select Virtual Router Console to bring
up the underlying xorp shell for the virtual router. |
|
B: Once at the xorp shell prompt, type the following
to display the routing table information:
show route table ipv4 unicast final |
|
- Use traceroute to traverse all five hops.
- Generate LANforge traffic through the multi-hop network.
A: Go to the Layer-3 tab and select Create. |
|
B: Set Endpoint-A to use eth1 and Endpoint-B
to use eth4. |
|
C: Start the Layer-3 connection. |
|
D: Traffic flowing through the multi-hop network. |
|
Email Candela Technologies at: support@candelatech.com
if you have any questions or suggestions.
Candela Technologies, Inc., 2026 Main Street, Suite A, P.O. Box 3285, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1 360 380 1618
Candela Technologies, 2026 Main Street, Suite A, P.O. Box 3285, Ferndale, WA 98248, USA
www.candelatech.com |
sales@candelatech.com | +1 360 380 1618
Last modified: Fri Mar 11 09:51:07 PST 2011