Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2924m-xl single port - 2 VLANS

Status
Not open for further replies.

mtbiker

MIS
Aug 23, 2001
126
0
0
US
Is it possible to set a single port on the 2924m-xl switch to work on 2 separate VLANs? Single port going to Router. Router. VLAN1 would be private IP, VLAN2 would be Public IP connecting to 2 other ports on same switch.

Thanks in advance


 
What is the router?

Assuming it supports 802.1q then you configure the switch port as a dot1q trunk and configure the router port the same placing the two addresses on the sub interfaces created.

Hope this makes sense.

interface FastEthernet0
no ip address
speed auto
!
interface FastEthernet0.16
encapsulation dot1Q 16
ip address X.X.X.X
!
interface FastEthernet0.17
encapsulation dot1Q 17
ip address X.X.X.X
 
The router is a Cysco 1700 series. Has one LAN port, and 3 SERIAL CSU's connected to 3 T-1's, two going to remote private offices, one our public IP to the internet.

Thanks again



[bigglasses] Bill [:<}
mysign.gif

In the Adirondacks of New York.
 
The Cisco 1721 supports standards-based IEEE 802.1Q VLAN routing, which enables enterprises to set up multiple VLANs and route between them for added security within the internal corporate network. So you should be able to perform what Ianh stated.

Create an 802.1q trunked port on the switch connecting to the router using command

Switch# interface 21

Switch# switchport mode multi vlan1,2

On your router
leve the original interface like this:
interface FastEthernet0
no ip address
speed auto


Then create a sub-interface by issuing the interface command in global config mode like this:

Router(config)# interface FastEthernet0.16

Next set the encapsulation to dot1q and whatever your vlan is as well.
encapsulation dot1Q 1
Then set the ip address
ip address X.X.X.X

Perform the same thing with the next sub-interface

interface FastEthernet0.17
encapsulation dot1Q 2
ip address X.X.X.X


NOTE however many VLans you are routing is how many sub-interfaces you will need. Basically I just drew out what Ianh said in a sligh bit more detail.
 
This looks good. I have to get some down time this weekend, I'll give it a try.

Thanks alot

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top