Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Showing posts with label router. Show all posts
Showing posts with label router. Show all posts

Thursday, December 22, 2011

router on a tip...

it doesn't get easier than this...

get a router a switch and 2 pc's...
connect a straight through cable from the router to a port on a switch... remove the ip address from the fa0/0 first and always, when making subinterfaces (frame and ppp too)... make two subinterfaces on the router
encap dot1q 21 means what it says; encapsulation dot1q for vlan 21...
give each sub ip's on different subnets (intervlan routing; now i got a network boner)


r2620_02#config t
Enter configuration commands, one per line.  End with CNTL/Z.
r2620_02(config)#int fa0/0.21
r2620_02(config-subif)#encap dot1q 21
r2620_02(config-subif)#ip add 192.168.21.1 255.255.255.0
r2620_02(config-subif)#no shut
r2620_02(config-subif)#int fa0/0.22
r2620_02(config-subif)#encap dot1q 22
r2620_02(config-subif)#ip add 192.168.22.1 255.255.255.0
r2620_02(config-subif)#no shut
r2620_02(config-subif)#

swich time..
make two vlans, make a trunk (assigning vlans to the trunk is optional, why, because they forward all vlan traffic by default unless otherwise slapped around), put an interface into each vlan and you got...

s2(config)#vlan 21
s2(config-vlan)#name 21
s2(config-vlan)#vlan 22
s2(config-vlan)#name 22
s2(config-vlan)#exit
s2(config)#int fa0/17
s2(config-if)#sw mode trunk
s2(config-if)#sw trunk allow vlan 21,22
s2(config-if)#exit
s2(config)#int fa0/15
s2(config-if)#sw mode acc
s2(config-if)#sw acc vlan 21

s2(config-if)#int fa0/16
s2(config-if)#sw mode acc
s2(config-if)#sw acc vlan 22

s2(config-if)#do sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/5
10   fac/staff                        active    Fa0/11, Fa0/12, Fa0/13, Fa0/14
20   students                         active    Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24
21   21                               active    Fa0/15
22   22                               active    Fa0/16


connect a pc to each switch port and set ip's and gateways...














and then ping the damn things... don't forget to debug ip icmp on the router, see after pc pings...

C:\Users\bosgood>ping 192.168.21.1

Pinging 192.168.21.1 with 32 bytes of data:
Reply from 192.168.21.1: bytes=32 time=2ms TTL=255
Reply from 192.168.21.1: bytes=32 time=1ms TTL=255
Reply from 192.168.21.1: bytes=32 time=1ms TTL=255
Reply from 192.168.21.1: bytes=32 time=2ms TTL=255

Ping statistics for 192.168.21.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 2ms, Average = 1ms


C:\Users\bosgood>ping 192.168.22.1

Pinging 192.168.22.1 with 32 bytes of data:
Reply from 192.168.22.1: bytes=32 time=2ms TTL=255
Reply from 192.168.22.1: bytes=32 time=2ms TTL=255
Reply from 192.168.22.1: bytes=32 time=1ms TTL=255
Reply from 192.168.22.1: bytes=32 time=1ms TTL=255

Ping statistics for 192.168.22.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 2ms, Average = 1ms

r2620_02#debug ip icmp
ICMP packet debugging is on

r2620_02#
Dec 22 18:47:13.575: ICMP: echo reply sent, src 192.168.21.1, dst 192.168.21.2
r2620_02#
Dec 22 18:47:14.575: ICMP: echo reply sent, src 192.168.21.1, dst 192.168.21.2
r2620_02#
Dec 22 18:47:15.579: ICMP: echo reply sent, src 192.168.21.1, dst 192.168.21.2
r2620_02#
Dec 22 18:47:16.583: ICMP: echo reply sent, src 192.168.21.1, dst 192.168.21.2

r2620_02#
Dec 22 18:49:39.983: ICMP: echo reply sent, src 192.168.22.1, dst 192.168.22.2
r2620_02#
Dec 22 18:49:40.987: ICMP: echo reply sent, src 192.168.22.1, dst 192.168.22.2
r2620_02#
Dec 22 18:49:41.987: ICMP: echo reply sent, src 192.168.22.1, dst 192.168.22.2
r2620_02#
Dec 22 18:49:42.991: ICMP: echo reply sent, src 192.168.22.1, dst 192.168.22.2
r2620_02#

that's a router on my...

Saturday, November 12, 2011

xmodem...

i was getting tired by the last router upgrade from smi to emi...

but first a moment from our sponsor, the 3550 switch...
the default baud rate out of the box is 9600 for a console connection, however, did you know that this cannot be changed using the configuration register... 3560's either...  so i have what appears to be a baud rate incompatibility with my console connection because after setting the term to 9600, 8, none. 1, i get weird ascii creatures... that's a pain in the ass... hope i don't end up in rommon mode after next reload...

back to the ios upgrade... i delete the current ios in flash, copy run start, and reload the router...

shit...

after it came back it couldn't find an ios... flash was empty... i should have gone to bed... like i said, i was tired... it's been years since i've done an xmodem ios transfer... i set the baud rate on the router to 115200 and xmodemed away... 2 hours later i finally had an ios in flash again... duh...

here's the key...  don't be a hero and delete flash from the cli by hand... let copy tftp flash do it for you... it will prompt you to erase before loading the new ios, and you won't be sitting there all night watching exclamation points go across your damn screen because you bounced the router before you loaded the ios...

i am a dumbass...

Sunday, November 6, 2011

rip and eigrp together...


follow the bouncing prompts...

r2620_01#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
R    2.0.0.0/8 [120/1] via 10.0.0.2, 00:00:10, Serial0/1
R    100.0.0.0/8 [120/1] via 192.168.1.100, 00:00:20, FastEthernet0/0
R    3.0.0.0/8 [120/1] via 11.0.0.3, 00:00:12, Serial0/0
     10.0.0.0/30 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Serial0/1
     11.0.0.0/24 is subnetted, 1 subnets
C       11.0.0.0 is directly connected, Serial0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_01#

sw3550#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    1.0.0.0/8 [120/1] via 192.168.1.50, 00:00:13, Vlan1
R    2.0.0.0/8 [120/2] via 192.168.1.50, 00:00:13, Vlan1
     100.0.0.0/24 is subnetted, 1 subnets
C       100.0.0.0 is directly connected, Loopback0
R    3.0.0.0/8 [120/2] via 192.168.1.50, 00:00:13, Vlan1
R    10.0.0.0/8 [120/1] via 192.168.1.50, 00:00:13, Vlan1
R    11.0.0.0/8 [120/1] via 192.168.1.50, 00:00:13, Vlan1
C    192.168.1.0/24 is directly connected, Vlan1
sw3550#

then eigrp comes into the mix...

r2620_01#config t
Enter configuration commands, one per line.  End with CNTL/Z.
r2620_01(config)#router eigrp 1
r2620_01(config-router)#network 1.0.0.0
r2620_01(config-router)# network 10.0.0.0
r2620_01(config-router)# network 11.0.0.0
r2620_01(config-router)# network 192.168.1.0
r2620_01(config-router)#no auto-summ
r2620_01(config-router)#end
r2620_01#

after the other 2 routers have been updated with eigrp here is the new routing table...

r2620_01#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       2.0.0.0/8 [120/1] via 10.0.0.2, 00:00:19, Serial0/1
D       2.2.2.0/24 [90/2297856] via 10.0.0.2, 00:05:26, Serial0/1
R    100.0.0.0/8 [120/1] via 192.168.1.100, 00:00:21, FastEthernet0/0
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R       3.0.0.0/8 [120/1] via 11.0.0.3, 00:00:05, Serial0/0
D       3.3.3.0/24 [90/2297856] via 11.0.0.3, 00:01:20, Serial0/0
     10.0.0.0/30 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Serial0/1
     11.0.0.0/24 is subnetted, 1 subnets
C       11.0.0.0 is directly connected, Serial0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
r2620_01#


r2620_02#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       1.1.1.0/24 [90/2297856] via 10.0.0.1, 00:24:20, Serial0/0
R       1.0.0.0/8 [120/1] via 10.0.0.1, 00:00:00, Serial0/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
R    100.0.0.0/8 [120/2] via 10.0.0.1, 00:00:00, Serial0/0
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       3.3.3.0/24 [90/2809856] via 10.0.0.1, 00:20:14, Serial0/0
R       3.0.0.0/8 [120/2] via 10.0.0.1, 00:00:00, Serial0/0
     10.0.0.0/30 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Serial0/0
     11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       11.0.0.0/24 [90/2681856] via 10.0.0.1, 00:24:20, Serial0/0
R       11.0.0.0/8 [120/1] via 10.0.0.1, 00:00:04, Serial0/0
D    192.168.1.0/24 [90/2172416] via 10.0.0.1, 00:24:24, Serial0/0
r2620_02#


r2620_02#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       1.1.1.0/24 [90/2297856] via 10.0.0.1, 00:24:20, Serial0/0
R       1.0.0.0/8 [120/1] via 10.0.0.1, 00:00:00, Serial0/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
R    100.0.0.0/8 [120/2] via 10.0.0.1, 00:00:00, Serial0/0
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       3.3.3.0/24 [90/2809856] via 10.0.0.1, 00:20:14, Serial0/0
R       3.0.0.0/8 [120/2] via 10.0.0.1, 00:00:00, Serial0/0
     10.0.0.0/30 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Serial0/0
     11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       11.0.0.0/24 [90/2681856] via 10.0.0.1, 00:24:20, Serial0/0
R       11.0.0.0/8 [120/1] via 10.0.0.1, 00:00:04, Serial0/0
D    192.168.1.0/24 [90/2172416] via 10.0.0.1, 00:24:24, Serial0/0
r2620_02#



look at those friggin d's up in there...

and the 3550 wants in too...
only the 3550 is still stuck with rip version 2...

sw3550#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    1.0.0.0/8 [120/1] via 192.168.1.50, 00:00:25, Vlan1
R    2.0.0.0/8 [120/2] via 192.168.1.50, 00:00:25, Vlan1
     100.0.0.0/24 is subnetted, 1 subnets
C       100.0.0.0 is directly connected, Loopback0
R    3.0.0.0/8 [120/2] via 192.168.1.50, 00:00:25, Vlan1
R    10.0.0.0/8 [120/1] via 192.168.1.50, 00:00:25, Vlan1
R    11.0.0.0/8 [120/1] via 192.168.1.50, 00:00:25, Vlan1
C    192.168.1.0/24 is directly connected, Vlan1
sw3550#

and the 2950's have a say in the matter as well on the other side of the 3550...

sw2950_02#ping 3.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/34/44 ms
sw2950_02#

rip still hangs in the background but rips' administrative distance just got hammered by eigrp...
(output from r2601_01's sh run)


router eigrp 1
 network 1.0.0.0
 network 10.0.0.0
 network 11.0.0.0
 network 192.168.1.0
 no auto-summary
!
router rip
 version 2
 network 1.0.0.0
 network 10.0.0.0
 network 11.0.0.0
 network 192.168.1.0


eigrp and rip; like peas and carrots...

Wednesday, November 2, 2011

a new beginning...

my first shipment arrived today, the 3550, i expect the rest of the gear tomorrow... it's kind of weird having the shit in my apartment... it'll be a constant reminder; configure me, connect me, make me go to porn sites... i'll do pictures tomorrow once i have them racked...

so i take the switch out of the box, set it on a stand for now, grab the console cable and i'm ready to connect it to my laptop...  no serial port... not a problem... i break out the old desktop, monitor, etc, power it up and i'm all set...  no serial port on that either and that's got to be five years old by now... damn... off to office max, nice that it's just up the road, and i look around a bit... over ten bucks for a power cable, nearly thirty for a long rj-45... i turn a corner and there is the section i'm looking for...  37 dollars for a serial to usb adapter... i have these visions that i'm about to nickel and dime myself into the poor house with this project... all right, buy it, return it before 14 days are up, and get a cheaper one on line... not a chance, 30 bucks on line not including shipping... good God...

had to install software for it also...  connect it up, run putty, select serial, com1, defaults to 8, none, and 1
and i get errors; serial port not found...  go to control-panel, system, hardware, (xp machine) and there it is... on com3...

works great... connected it up through the wireless router to the cable modem and i'm pinging the time warner gateway within moments... routers and more switches tomorrow...

Monday, October 31, 2011

nibbles and bits

nibbles and bits...

the configuration register of a router is represented by a hex number, or 0x... it is a sixteen
bit number read from left to right starting from 15, and ending with 0, sixteen numbers total...
cisco loves the number sixteen because it is difficult to add sixteens... quick what is 16 plus
forty eight? 128 plus 16? how many 16's in 192? 16 x 4 is 64 which goes into 192 3 times... 3 x
four is 12... what is 12 hex?

 1      2       3      4      5      6      7         8       9      10      11      12     13     14     15     16
  16    32     48    64    80    96   112    128     144   160    176    192   208   224   240   256

0x2102 means load start from nvram if found

15 14 13 12 11 10   9  8  7  6  5  4  3  2  1  0
 8   4   2   1  8   4   2  1  8  4  2  1  8  4  2  1

15 to 0 are place positions
each group of 4 bits is a nibble
count the nibbles and bits
don't look at me... i didn't make this shit up

0010 0001 0000 0010 = 0x2102

try to think of all three number systems at once.. here is a great site that groups all three...
http://easycalculation.com/decimal-converter.php

decimal 20
is 14 in hex because 16 goes into 20 once with a remainder of 4
the binary value is 0001 0100 because 16 + 4 is twenty:

128 64 32 16   8 4 2 1
 0    0   0   1    0 1 0 0

back to 192, the beginning of the class C range of private adresses
16 goes into 192 12 times
12 = C in hex so 192 = C0 hex
192 = 11000000 because 128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = one hundred and 92

remember 128 64 32 16 8 4 2 1
8 4 2 1 binary = 15 decimal = F hex

what is decimal 42 in hex? 2A
binary? 00101010
10 = A = 1010
sixteen goes into 42 twice remainder 10