Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Friday, December 14, 2012

5 rtrs...

i worked a little on automating the process...


first, cdp...

core1#sh cdp neigh                                                             
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge        
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,     
                  D - Remote, C - CVTA, M - Two-port Mac Relay                 
                                                                               
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID    
agg1.ozlan       Fas 0/1           170             R S I  WS-C3560- Fas 0/1    
agg1.ozlan       Fas 0/2           170             R S I  WS-C3560- Fas 0/2    
agg2.ozlan       Fas 0/5           127             R S I  WS-C3560- Fas 0/5    
agg2.ozlan       Fas 0/6           127             R S I  WS-C3560- Fas 0/6    
gnsrtr4.ozlan    Fas 0/13          147               R    7206VXR   Fas 0/0    
gnsrtr5.ozlan    Fas 0/14          177               R    7206VXR   Fas 0/0    
gnsrtr2.ozlan    Fas 0/11          139               R    7206VXR   Fas 0/0    
gnsrtr3.ozlan    Fas 0/12          144               R    7206VXR   Fas 0/0    
gnsrtr1.ozlan    Fas 0/10          132               R    7206VXR   Fas 0/0    
core2.ozlan      Fas 0/4           164             R S I  WS-C3560- Fas 0/4    
core2.ozlan      Fas 0/3           164             R S I  WS-C3560- Fas 0/3 

 you'll need to sudo apt-get install vlan first... save the mod in case of reboot...

see http://blog.ipexpert.com/2011/02/28/gns3-and-physical-switches-breakout-switch/#more-6136

word of caution, you can try to screw around with creating a root account... don't...

i made a text file to quickly build the nix interfaces...

you can use vconfig to make the vlans, but you'll still have to add the ip's to the nic (waste of time)... this does it in one step...

auto eth0.110
iface eth0.110 inet static
address 10.110.1.2
netmask 255.255.255.0

auto eth0.120
iface eth0.120 inet static
address 10.120.1.2
netmask 255.255.255.0

auto eth0.130
iface eth0.130 inet static
address 10.130.1.2
netmask 255.255.255.0

auto eth0.140
iface eth0.140 inet static
address 10.140.1.2
netmask 255.255.255.0

auto eth0.150
iface eth0.150 inet static
address 10.150.1.2
netmask 255.255.255.0

copy them to the /etc/network/interfaces file with an editor:

sudo gedit /etc/network/interfaces

then sudo service networking restart to kick them off...

arteq@arteq-p7-1254:/$ ifconfig
eth0      Link encap:Ethernet  HWaddr e8:40:f2:0e:de:63 
          inet6 addr: fe80::ea40:f2ff:fe0e:de63/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1536  Metric:1
          RX packets:62860 errors:0 dropped:9 overruns:0 frame:0
          TX packets:5627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6112576 (6.1 MB)  TX bytes:755838 (755.8 KB)
          Interrupt:44 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 9c:b7:0d:9d:82:78 
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::9eb7:dff:fe9d:8278/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23412 errors:0 dropped:0 overruns:0 frame:651174
          TX packets:17752 errors:65 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15762205 (15.7 MB)  TX bytes:3971120 (3.9 MB)
          Interrupt:16

eth0.110  Link encap:Ethernet  HWaddr e8:40:f2:0e:de:63 
          inet addr:10.110.1.2  Bcast:10.110.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea40:f2ff:fe0e:de63/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1536  Metric:1
          RX packets:3445 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:185668 (185.6 KB)  TX bytes:10270 (10.2 KB)

eth0.120  Link encap:Ethernet  HWaddr e8:40:f2:0e:de:63 
          inet addr:10.120.1.2  Bcast:10.120.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea40:f2ff:fe0e:de63/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1536  Metric:1
          RX packets:2899 errors:0 dropped:2 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:163544 (163.5 KB)  TX bytes:10359 (10.3 KB)

eth0.130  Link encap:Ethernet  HWaddr e8:40:f2:0e:de:63 
          inet addr:10.130.1.2  Bcast:10.130.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea40:f2ff:fe0e:de63/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1536  Metric:1
          RX packets:4318 errors:0 dropped:6 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:252240 (252.2 KB)  TX bytes:10385 (10.3 KB)

eth0.140  Link encap:Ethernet  HWaddr e8:40:f2:0e:de:63 
          inet addr:10.140.1.2  Bcast:10.140.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea40:f2ff:fe0e:de63/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1536  Metric:1
          RX packets:2364 errors:0 dropped:1 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:131880 (131.8 KB)  TX bytes:10359 (10.3 KB)

eth0.150  Link encap:Ethernet  HWaddr e8:40:f2:0e:de:63 
          inet addr:10.150.1.2  Bcast:10.150.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ea40:f2ff:fe0e:de63/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1536  Metric:1
          RX packets:3209 errors:0 dropped:4 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:183412 (183.4 KB)  TX bytes:10340 (10.3 KB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:261083 errors:0 dropped:0 overruns:0 frame:0
          TX packets:261083 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16362694 (16.3 MB)  TX bytes:16362694 (16.3 MB)

incidentally, eth1 is my wireless card...

this is what my finished /etc/network/interfaces file looks like:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth0.110
iface eth0.110 inet static
address 10.110.1.2
netmask 255.255.255.0

auto eth0.120
iface eth0.120 inet static
address 10.120.1.2
netmask 255.255.255.0

auto eth0.130
iface eth0.130 inet static
address 10.130.1.2
netmask 255.255.255.0

auto eth0.140
iface eth0.140 inet static
address 10.140.1.2
netmask 255.255.255.0

auto eth0.150
iface eth0.150 inet static
address 10.150.1.2
netmask 255.255.255.0

auto eth1
iface eth0 inet dhcp

this is what the ethernet switch in gns3 looks like:


note dot1q for port 11 which is from the nix box to f1/0/1 of the  breakout...

you'll need svi's on your connecting mls for each vlan, as well as the vlans... don't forget to make the vlans first...

core1#sh vlan brie                                                             
                                                                               
VLAN Name                             Status    Ports                          
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/7, Fa0/8, Fa0/9, Fa0/16    
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20 
                                                Fa0/21, Fa0/22, Fa0/24, Gi0/1  
                                                Gi0/2                          
10   10                               active                                   
100  100                              active                                   
110  gnsr1                            active    Fa0/10                         
120  gnsr2                            active    Fa0/11                         
130  gnsr3                            active    Fa0/12                         
140  gnsr4                            active    Fa0/13                         
150  gnsr5                            active    Fa0/14, Fa0/15                 
200  200                              active                                   
1002 fddi-default                     act/unsup                                
1003 token-ring-default               act/unsup                                
1004 fddinet-default                  act/unsup                                
1005 trnet-default                    act/unsup     

on the breakout you need the l2protocol-tunnel statements for each l2 proto, cdp, stp and (arghhhh) vtp (cough) as well as sw acc vlan x for the corresponding supported vlan...

don't bother with the routing protocol on the gns routers until you've proven cdp, and basic l3 connectivity first...

gnsrtr5#ping 10.150.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.150.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/12 ms
gnsrtr5#

then get em all talking with ospf or one of those other igp's...

core1#sh ip route                                                              
        
                                                                               
Gateway of last resort is not set                                              
                                                                               
     1.0.0.0/24 is subnetted, 1 subnets                                        
C       1.0.0.0 is directly connected, Loopback0                               
     2.0.0.0/32 is subnetted, 1 subnets                                        
O       2.0.0.2 [110/2] via 10.1.200.2, 00:00:03, Vlan200                      
                [110/2] via 10.1.100.2, 00:00:03, Vlan100                      
                [110/2] via 10.1.10.2, 00:00:03, Vlan10                        
     3.0.0.0/32 is subnetted, 1 subnets                                        
O       3.0.0.3 [110/2] via 10.1.200.11, 00:00:03, Vlan200                     
                [110/2] via 10.1.100.11, 00:00:03, Vlan100                     
                [110/2] via 10.1.10.11, 00:00:03, Vlan10                       
     4.0.0.0/24 is subnetted, 1 subnets                                        
O       4.0.0.0 [110/2] via 10.1.200.12, 00:00:03, Vlan200                     
                [110/2] via 10.1.100.12, 00:00:03, Vlan100                     
                [110/2] via 10.1.10.12, 00:00:03, Vlan10                       
     10.0.0.0/24 is subnetted, 8 subnets                                       
C       10.1.10.0 is directly connected, Vlan10                                
C       10.110.1.0 is directly connected, Vlan110                              
C       10.1.100.0 is directly connected, Vlan100                              
C       10.120.1.0 is directly connected, Vlan120                              
C       10.140.1.0 is directly connected, Vlan140                              
C       10.130.1.0 is directly connected, Vlan130                              
C       10.150.1.0 is directly connected, Vlan150                              
C       10.1.200.0 is directly connected, Vlan200

agg2# sh ip route ospf                                                         
     1.0.0.0/32 is subnetted, 1 subnets                                        
O       1.0.0.1 [110/2] via 10.1.200.1, 00:01:22, Vlan200                      
                [110/2] via 10.1.100.1, 00:01:22, Vlan100                      
                [110/2] via 10.1.10.1, 00:01:22, Vlan10                        
     2.0.0.0/32 is subnetted, 1 subnets                                        
O       2.0.0.2 [110/2] via 10.1.200.2, 00:01:22, Vlan200                      
                [110/2] via 10.1.100.2, 00:01:22, Vlan100                      
                [110/2] via 10.1.10.2, 00:01:22, Vlan10                        
     3.0.0.0/32 is subnetted, 1 subnets                                        
O       3.0.0.3 [110/2] via 10.1.200.11, 00:01:22, Vlan200                     
                [110/2] via 10.1.100.11, 00:01:22, Vlan100                     
                [110/2] via 10.1.10.11, 00:01:22, Vlan10                       
     10.0.0.0/24 is subnetted, 8 subnets                                       
O       10.110.1.0 [110/2] via 10.1.200.1, 00:01:22, Vlan200                   
                   [110/2] via 10.1.100.1, 00:01:22, Vlan100                   
                   [110/2] via 10.1.10.1, 00:01:22, Vlan10                     
O       10.120.1.0 [110/2] via 10.1.200.1, 00:01:22, Vlan200                   
                   [110/2] via 10.1.100.1, 00:01:22, Vlan100                   
                   [110/2] via 10.1.10.1, 00:01:22, Vlan10                     
O       10.140.1.0 [110/2] via 10.1.200.1, 00:01:22, Vlan200                   
                   [110/2] via 10.1.100.1, 00:01:22, Vlan100                   
                   [110/2] via 10.1.10.1, 00:01:22, Vlan10                     
O       10.130.1.0 [110/2] via 10.1.200.1, 00:01:22, Vlan200                   
                   [110/2] via 10.1.100.1, 00:01:22, Vlan100                   
                   [110/2] via 10.1.10.1, 00:01:26, Vlan10                     
O       10.150.1.0 [110/2] via 10.1.200.1, 00:01:26, Vlan200                   
                   [110/2] via 10.1.100.1, 00:01:26, Vlan100                   
                   [110/2] via 10.1.10.1, 00:01:26, Vlan10

gnsrtr5#ping 10.110.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.110.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/10/16 ms
gnsrtr5#

als1#ping 10.130.1.2                                                           
                                                                               
Type escape sequence to abort.                                                 
Sending 5, 100-byte ICMP Echos to 10.130.1.2, timeout is 2 seconds:            
!!!!!                                                                          
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/209/1012 ms

it's very exciting...

No comments:

Post a Comment