#SH RUN

Follow me on TwitterRSS Feeds

  • Home
  • About
VTP switch diagram

How to configure a VTP Server and Client

Oct 25th

Posted by Bill in Configuration

No comments

VLAN Trunking Protocol (VTP) is Cisco’s proprietary protocal for propagating VLAN information that exists on one switch to another switch.  The advantage of VTP is that it eliminates the need to create VLANs on each individual switch within a site.  Instead you only need to create your VLANs on the switch you designate as the server and assign your other switches to the role of a client.

For the purposes of this example Switch A will be the VTP Server and Switch B will be the VTP client.

VTP switch diagram

  1. Setup VTP server role for Switch A
  2. Create VLANs on Switch A
  3. Setup VTP client role for Switch B
  4. Setup 802.1q Trunking between Switch A and Switch B
  5. Assign VLANs to specific interfaces

The configuration goes like this:
1. Setup VTP server on Switch A

SwitchA#vlan database (enter vlan configuration mode)
SwitchA(vlan)#vtp server (sets the VTP mode)
SwitchA(vlan)#vtp password MYPASSWORD (optional, assign a password to the VTP domain)
SwitchA(vlan)#vtp domian CORP (assigns a name to the VTP domain)
SwitchA(vlan)#exit (exit vlan configuration mode)

2. Create VLANs on Switch A (the VTP server)

SwitchA#configure teminal (enter into configuration mode)
SwitchA(config)#vlan 2 (defines the vlan, in this case vlan 2)
SwitchA(config)#vlan 2 name accounting (assigns a name to the vlan for description)
SwitchA(config)#exit (exit configuration mode)

3. Setup VTP client role on Switch B

SwitchB#vlan database (enter vlan configuration mode)
SwitchB(vlan)#vtp client (sets the VTP mode)
SwitchB(vlan)#vtp domain CORP (defines the VTP domain name)
SwitchB(vlan)#vtp password MYPASSWORD (the password for the VTP domain)
SwitchB(vlan)#exit (exits VTP configuration mode)

4. Setup Trunking between Switch A and Switch B

SwitchA(config)#configure terminal (enter the configuration mode)
SwitchA(config)#interface fastethernet 0/1 (select ethernet port 1)
SwitchA(config-if)#switchport mode trunk (set port 1 as a trunk port)
SwitchA(config-if)#switchport trunk encapsulation dot1q (set the trunk type)
SwitchA(config-if)#end (exit configuration mode)

SwitchB(config)#interface fastethernet 0/1 (select ethernet port 1)
SwitchB(config-if)#switchport mode trunk  (set port 1 as a trunk port)
SwitchA(config-if)#switchport trunk encapsulation dot1q (set the trunk type)
SwitchB(config-if)#end (exit configuration mode)

5. Assign VLANs to particular interfaces

SwitchA(config)#configure terminal (enter configuration mode)
SwitchA(config)#interface fastethernet 0/2 (select the interface)
SwitchA(config-if)# switchport access vlan2 (assign the VLAN to the interface)
SwitchA(config-if)#exit (exit interface configuration)

Of course there are a few other options, but the above example covers all the basics you need to know to setup VTP on your switches.

802.1q, Cisco, switch, Trunking, VLAN, VTP

Peparing for Cisco Live!

Jun 25th

Posted by Bill in Uncategorized

No comments

After wanting to go for several years, my job has decided to send me to Cisco Live! I can’t wait to attend some of these technical sessions and expand my networking knowledge. Stay tuned for updates!

Cisco Live

How to make your Cisco router a terminal server

Jul 10th

Posted by Bill in Cisco

No comments

On more than one occasion I have needed to access the console port of a switch, but I wasn’t physically there but I did have a router near the unit.  You can easily setup your router to act as a Terminal server, allowing you to use a flat rolled cable between the Router’s AUX port and the switch’s CONSOLE port.  First you need to properly configure your AUX port:

line aux 0
    modem InOut
    transport input all
    stopbits 1
    flowcontrol hardware

Now in order to use this feature, log into your router and do the following:

  • from the command prompt enter: SHOW LINE
  • Find the line number for AUX (in this example it is Line 5)
  • Telnet to the IP address of the router you are logged into, but when you telnet you will need to indicate a specific port.  That port is 2000 + the line number.  So in this example your command would look like this: ‘telnet 172.17.10.1 2005′
  • This will get you access to the remote device
  • When you are finished with the session on the remote device break out with CTRL+ALT+6, followed by x one second later.  If you by chance use SecureCRT for your Telnet sessions you can setup a key map that sends the following ASCII standard for that command ‘\036\px’.  You can read more about this on VanDyke’s SecureCRT Forum.
  • Once you are back in the original device you can return to the remote device by simply pressing the ENTER key.
  • If you are finished with your remote session, you can issue a CLEAR command to close that connection.  In this example the command would be ‘CLEAR LINE 5′
AUX, Cisco, Console, port, router, terminal server

Helpful Cisco Documents

Jun 11th

Posted by Bill in Cisco

No comments

I always need to look up features on different Cisco routers and switches.  Cisco actually produces two documents that let you quickly see all the available models and associated features:

Cisco Router Guide
Cisco Catalyst Switch Guide

catalyst, Cisco, docs, guide, router, switch

How to make a T1 loopback

Jun 4th

Posted by Bill in Home Lab

No comments

Sometimes you need a quick and easy way to test a T1 connection on a piece of equipment.  For example, you want to make sure that the T1 WIC on your router is working.

To construct a loopback plug, simply take a single RJ45 plug and connect pin 1 to 4 and pin 2 to 5.

cable, loopback, plug, t1, test
t1-crossover

How to make a T1 Crossover cable

Jun 4th

Posted by Bill in Home Lab

4 comments

In setting up my home lab, one thing that I needed to do was communicate between my routers using the T1 WICs.  For the physical cable connection it is necessary to use a T1 Crossover cable.  This is really simple to construct.  Using standard twisted pair cable and RJ45 ends, make the following connections: pin 1 to 4, 2 to 5, 4 to 1 and 5 to 2.  Below is a diagram:

t1-crossover

crossover cable, Home Lab, t1

Configuring T1 WICs for a Home lab

Jun 3rd

Posted by Bill in Cisco

1 comment

I have a couple of routers as part of my home lab that I am using for my Cisco certification studies.  One thing that I wanted to do was connect two routers together via their T1 WICs.  There are two things you need to do:

  • create a T1 crossover to connect the routers
  • set the clock settings on each routers’ serial interface to simulate the T1

In another post I will put the details of making a T1 crossover cable, here is a simple example of the configuration you need to apply to each routers’ T1 serial interface.

**apply this to router #1**
 
ip address 192.168.1.1 255.255.255.248
 encapsulation ppp
 fair-queue
 service-module t1 clock source internal
 service-module t1 timeslots 1-24 speed 64
 service-module t1 framing esf
 service-module t1 linecode b8zs
 no shut
**apply this to router #2**
 
ip address 192.168.1.2 255.255.255.248
 encapsulation ppp
 fair-queue
 service-module t1 clock source internal
 service-module t1 timeslots 1-24 speed 64
 service-module t1 framing esf
 service-module t1 linecode b8zs
 no shut

Cisco, config, Home Lab, t1, wic

How to find the port a device is plugged into

Jun 3rd

Posted by Bill in Cisco

1 comment

Have you ever needed to quickly find out which switch port a network device is plugged into and you only know the IP address of the device?  You could always trace the cables in your data closet and drive yourself crazy or you could use a few simple commands on your switch and quickly find it.

sh ip arp | inc <ip address>
This will return the mac address
sh mac-address-table | inc <mac address>
This will return the switch port
If the IP address is on another switch, the port that is returned in the output will be for the trunked port that goes to the next “hop”.  Go to the next switch and repeat.

sh run int <switch port>
This will return the config for that interface

Here is an example:

switch01#sh ip arp | inc 172.16.11.200
Internet  172.16.11.200           0   0080.a38a.10dc  ARPA   Vlan11
switch01#sh mac-address-table | inc 0080.a38a.10dc
  11    0080.a38a.10dc   dynamic ip                     GigabitEthernet3/3 
switch01#sh run int gi3/3
Building configuration…
Current configuration : 152 bytes
!
interface GigabitEthernet3/3
 description IBM APPLICATION SERVER
 switchport access vlan 11
 switchport mode access
 qos trust dscp
 spanning-tree portfast
end
switch01#

Cisco, config, port, switch

Just another Cisco networking blog

May 22nd

Posted by Bill in Personal

No comments

I know there are a ton of Cisco networking websites out there, so I figured why not start another.  The real reason for this site is so I can have a place to store my thoughts, notes and bookmarks as I start my journey toward Cisco certification.

Certification, Cisco
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Cisco (4)
    • Configuration (1)
    • Home Lab (3)
    • Personal (1)
    • Uncategorized (1)
    802.1q AUX cable catalyst Certification Cisco Cisco Live config Console crossover cable docs guide Home Lab loopback plug port router switch t1 terminal server test Trunking VLAN VTP wic
    • October 2010 (1)
    • June 2010 (1)
    • July 2009 (1)
    • June 2009 (5)
    • May 2009 (1)
    • How to make a T1 Crossover cable (4)
    • How to find the port a device is plugged into (1)
    • Configuring T1 WICs for a Home lab (1)
    • Just another Cisco networking blog (0)
    • How to make a T1 loopback (0)
    • Helpful Cisco Documents (0)
    • How to make your Cisco router a terminal server (0)
    • How to configure a VTP Server and Client (0)
    • Peparing for Cisco Live! (0)
    • Bill: Glad I was able to help. Keep an eye out for updates to the site soon.
    • Starfox: Thanks again Bill, Fantastic!!
    • Starfox: Thanks man!!!
    • Omer: On the 2nd router, the command should be 'service-module t1 clock source line' if its 'internal'...
    • Bill: Glad I was able to help out! Over time I'll be adding more notes and posts, I've just been busy...
    • Eric Worthington: Thank you, studying for my CCNA and found this usefull. Lucky enough to have some old routers in...
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • User Login






    • Lost your password?
  • Blogroll

    • Cisco Blog
    • Cisco Cert Zone
    • Cisco Learning Network
    • Cisco Subnet
    • Cisco Validated Design
    • Evil Routers
    • PacketLife
    • Rate My Network Diagrams
    • Route My World
    • Solarwinds
    • Thwack
    • Visio Guy
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top