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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static routing on router with vlan traffic

Status
Not open for further replies.

Edward999

Programmer
Dec 26, 2002
112
MY
My PC connected to one of my Dell switch and my DHCP server connected to another Dell switch. Both Dell switch and DHCP server having an ip address 192.168.1.X

I manage to get Ip address from DHCP when i connected to dell switch with vlan setting. My PC connected to vlan101.

Both of my 5324 Dell switch have tagging on port 24(SPF port). My 3550 have trunking on the interface with 802.1q encapsulation.

interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
ip access-group 101 in

interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
ip access-group 101 in

I already created the vlan at the 3550 global configuration mode and when i show vlan the vlan status is active and i already put in ip helper-address DHCP server. I also check the interface on 3550 is up and running. I have route all the traffic to my router ip address.

ip route 0.0.0.0 0.0.0.0 192.168.1.X

interface Vlan101
ip address 10.1.22.1 255.255.255.0
ip helper-address 192.168.1.10


My diagram as below:

Internet => router => Dell 5324 => Cisco 3550 => Dell 5324 => MY PC

I really have no idea already. Do i have to route back my vlan traffic to Cisco 3550 ?

Please help...thanks for any reply.

 

oops...sorry. My problem is cannot access internet from my PC with this setting.

Thanks for any reply
 
Edward-

What I am gathering is your diagram looks more like this...
Internet
||
||
Router
||
||
Cisco 3550
|| ||
|| ||
d5324 d5324
|| ||
|| ||
PC DHCP Server

If it doesn't look like this, it should. Your c3550 your core/distibution switch and would handle all the intervlan routing. Your default gateway for each vlan would point to the interface IP address on there respective vlan. Your defualt gateway to get out to the internet would point to the router. Now my second question is do you have another vlan other than 101? If not then intervaln routing isn't needed. Hoep that helps.. Let me know.

Frank
 
Thanks for your reply. My diagram as below (Diagram 1):

Internet(2 ADSL line)
||
||
Router(2 WAN port)
||
||
D3324 ---->DHCP
||
||
C i s c o 3 5 5 0
|| || ||
D3348 D3348 D3348
|| || ||
|| || ||
PC1 PC2 PC3
(vlan101)(vlan102)(vlan103)

Diagram 1



Internet
||
||
Router
||
||
Cisco 3550
|| ||
|| ||
d5324 d5324
|| ||
|| ||
PC DHCP Server

Diagram 2


Actually i have different vlan on different dell switch port. My router will do all the NAT. My PC on vlan101 having default gateway point to interface vlan101 3550. My core switch will route the traffic to my router

IP route 0.0.0.0 0.0.0.0 192.168.1.X

All my vlan traffic having IP address 10.1.XX.XX. The uplink between router and cisco3550 have no trunking port.

I try on diagram 2 also cannot access internet. I really have no idea on this.

Thanks for any reply.






 
Ok your diagram would work, so lets work with what you have...

I would remove the d3324 switch unless it performing a specific function that requires it to be there.

Now your c3550 becomes your core/distribution switch. I assuming you have created the vlans on the switch for vlan 101, 102 and 103. I am using these ip's just for demo. So your vlan interfaces should look like this..

interface vlan 1 (vlan 1 is your management/default vlan)
ip address 10.10.1.1 255.255.255.0.


interface vlan 101
ip address 10.10.101.1 255.255.255.0

interface vlan 102
ip address 10.10.102.1 255.255.255.0

interface vlan 103
ip address 10.10.103.1 255.255.255.0
-------------------------------------
Make sure have routing enabled on the c3550. Unless you are going to have multiple vlans on each switch you won't need trunking protocol enabled. We are going to assume that you have the router interface connected to the c3550 switch ip address as 10.10.1.2 255.255.255.0. So on your 3550 your default route is..
ip route 0.0.0.0 0.0.0.0 10.10.1.2

Try that..

Frank

 
There are several ways to do this


First question is with multiple vlans who is going to handle intervlan routing. is your internet router a cisco router or something else. is it capable of supporting intervlan routing, ie vlan encapsulation, or router on a stick configurations. if its a cisco router it most likely is however another brand i am not sure. the 3550 can still make all this work it will just take some configuration work and some redesign.

i would definately recommend the 3550 be the core switch. i

it is capable of all the features required for this design

VLANs
Intervlan routing
trunking
dhcp
nat if necessary
helper addresses or dhcp relay
QOS multicast lots of stuff
security
inline power with the right model
broadcast/multicast suppression
you get the picture.


it essentially a router + switch and more.



Lui3
CCNP,CCDA,A+/Net+
Cisco Wireless Specialization
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top