Objective: Learn to configure a hub-and-spoke topology.
Lab Equipment: Router 1, Router 2, Router 3, and Router 4 from the eRouters menu
Background Reading: Lab Primer Lesson 9: Frame Relay
Your company’s corporate office is in Dallas, and its sales offices are in San Francisco, New York,and Tampa. You want to implement a hub-and-spoke topology in which all of the sales offices connect to the corporate office to send all data, including communications between sales offices.
Lab Equipment: Router 1, Router 2, Router 3, and Router 4 from the eRouters menu
Background Reading: Lab Primer Lesson 9: Frame Relay
Your company’s corporate office is in Dallas, and its sales offices are in San Francisco, New York,and Tampa. You want to implement a hub-and-spoke topology in which all of the sales offices connect to the corporate office to send all data, including communications between sales offices.
1. First, assign the host names of Dallas, San_Francisco, New_York, and Tampa to Router 1, Router 2, Router 3, and Router 4, respectively.
Dallas:
San_Francisco:
New_York:
Tampa:
2. Now, enter interface configuration mode for the serial 0 interface on Dallas, and set the encapsulation type to Frame Relay. Be sure to enable the interface.
Dallas(config)#interface serial 0
Dallas(config-if)#encapsulation frame-relay
Dallas(config-if)#no shutdown
3. Next, create a subinterface for the connection from Dallas to the San Francisco sales office.
Dallas(config-if)#exit
Dallas(config)#interface serial 0.100 point-to-point
Dallas(config-subif)#
4. Assign the subinterface the DLCI number for the connection from Dallas to San_Francisco, and configure the subinterface with the appropriate IP address. Remember to enable the subinterface.
Dallas(config-subif)#frame-relay interface-dlci 102
Dallas(config-subif)#ip address 172.16.1.1 255.255.255.0
Dallas(config-subif)#no shutdown
5. Create a subinterface for the connection from Dallas to the sales office in New York.
Dallas(config-subif)#exit
Dallas(config)#interface serial 0.200 point-to-point
Dallas(config-subif)#
6. Add the correct DLCI for the connection from Dallas to New_York, and configure the appropriate IP address for the subinterface. Remember to enable the subinterface.
Dallas(config-subif)#frame-relay interface-dlci 103
Dallas(config-subif)#ip address 172.16.2.1 255.255.255.0
Dallas(config-subif)#no shutdown
7. Create a subinterface for the connection from Dallas to the sales office in Tampa.
Dallas(config-subif)#exit
Dallas(config)#interface serial 0.300 point-to-point
Dallas(config-subif)#
8. Add the correct DLCI for the Dallas to Tampa connection, and configure the appropriate IP address for the subinterface. Remember to enable the subinterface.
Dallas(config-subif)#frame-relay interface-dlci 104
Dallas(config-subif)#ip address 172.16.3.1 255.255.255.0
Dallas(config-subif)#no shutdown
9. Access the serial 0 interface on San_Francisco, set the encapsulation to Frame Relay,and enable the interface.
San_Francisco(config)#interface serial 0
San_Francisco(config-if)#encapsulation frame-relay
San_Francisco(config-if)#no shutdown
10. Because subinterfaces are not necessary for single connections, add the appropriate DLCI value.
San_Francisco(config-if)#frame-relay interface-dlci 201
11. Set the IP address for this interface, and enable the interface.
San_Francisco(config-if)#ip address 172.16.1.2 255.255.255.0
San_Francisco(config-if)# no shutdown
12. Access the serial 0 interface on New_York, and set the encapsulation to Frame Relay.
New_York(config)#interface serial 0
New_York(config-if)#encapsulation frame-relay
13. Add the appropriate DLCI value.
New_York(config-if)#frame-relay interface-dlci 301
14. Set the IP address for this interface, and enable the interface.
New_York(config-if)#ip address 172.16.2.2 255.255.255.0
New_York(config-if)#no shutdown
15. Access the serial 0 interface on Tampa, and set the encapsulation to Frame Relay.
Tampa(config)#interface serial 0
Tampa(config-if)#encapsulation frame-relay
16. Add the appropriate DLCI value.
Tampa(config-if)#frame-relay interface-dlci 401
17. configure the IP address for this interface, and enable the interface.
Tampa(config-if)#ip address 172.16.3.2 255.255.255.0
Tampa(config-if)#no shutdown
18. Now, all interfaces should be up and up. To confi rm this, connect to Dallas and try to ping each of the three sales offices.
Dallas(config-subif)#exit
Dallas(config)#exit
Dallas#ping 172.16.1.2
Dallas#ping 172.16.2.2
Dallas#ping 172.16.3.2
************************************************
本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/72636
,如需转载请自行联系原作者