1 | Setup a Cisco 7200 using dynamips, attached to br-lan. |
---|
2 | |
---|
3 | Notes about load balancing: |
---|
4 | |
---|
5 | * We enable per-packet load sharing (not optimal on a real network) |
---|
6 | - http://blog.ipspace.net/2006/12/per-destination-or-per-packet-cef-load.html |
---|
7 | - Check out ip cef load-sharing algorithm <?> |
---|
8 | |
---|
9 | * maximum-paths enables ECMP |
---|
10 | |
---|
11 | |
---|
12 | See the lab for the router configuration |
---|
13 | |
---|
14 | Sample config below: |
---|
15 | |
---|
16 | - - - - - - - - - - - |
---|
17 | hostname rtr1 |
---|
18 | no ip domain lookup |
---|
19 | aaa new-model |
---|
20 | enable secret 5 $1$p4/E$PnPk6VaF8QoZMhJx56oXs. |
---|
21 | username cisco password 0 cisco |
---|
22 | ! |
---|
23 | interface FastEthernet0/0 |
---|
24 | ip address 10.10.0.222 255.255.0.0 |
---|
25 | ip access-group 100 out |
---|
26 | ip load-sharing per-packet |
---|
27 | no ip redirects |
---|
28 | ip ospf 100 area 0 |
---|
29 | speed auto |
---|
30 | duplex auto |
---|
31 | ! |
---|
32 | router ospf 100 |
---|
33 | redistribute connected subnets |
---|
34 | passive-interface default |
---|
35 | no passive-interface FastEthernet0/0 |
---|
36 | maximum-paths 16 |
---|
37 | ! |
---|
38 | ip forward-protocol nd |
---|
39 | ! |
---|
40 | no ip http server |
---|
41 | no ip http secure-server |
---|
42 | ip route 0.0.0.0 0.0.0.0 10.10.0.254 |
---|
43 | ! |
---|
44 | control-plane |
---|
45 | ! |
---|
46 | line con 0 |
---|
47 | exec-timeout 0 0 |
---|
48 | stopbits 1 |
---|
49 | line aux 0 |
---|
50 | exec-timeout 0 0 |
---|
51 | stopbits 1 |
---|
52 | line vty 0 4 |
---|
53 | exec-timeout 0 0 |
---|
54 | ! |
---|
55 | ! |
---|
56 | end |
---|
57 | - - - - - - - - - - - |
---|