07-26-2003 10:11 AM - edited 03-02-2019 09:08 AM
Hi,
The catalyst has a supervisor engine IV.
We want to use VLAN's on this switch and enable routing between them.
We have 3 subnets 10.0.0.0 255.255.255.0, 10.0.1.0 255.255.255.0, 10.0.2.0 255.255.255.0
The internet is connected via a firewall proxy server with an internal ip number 10.0.2.254.
Each subnet is a VLAN. We want to route some trafic to another VLAN.
All VLAN's will be using internet.
Is this possible, if so, can someone explain me how I must do that step by step?
Thanks.
Solved! Go to Solution.
07-26-2003 12:58 PM
First, create your three VLANs:
Switch(config)# vlan 2
Switch(config-vlan)# exit
Switch(config)# vlan 3
Switch(config-vlan)# exit
Switch(config)# vlan 4
Switch(config-vlan)# exit
Then assign ports to the VLANs:
Switch(config)# interface slot/port
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan (VLAN #)
(repeat the above for all ports)
Assign IP addresses to each VLAN:
Switch(config)# interface vlan2
Switch(config-if)# ip address 10.0.0.x 255.255.255.0
(repeat the above for all VLANS, with valid IP addresses within the VLANs' ranges)
Configure a default route to the internet:
ip route 0.0.0.0 0.0.0.0 10.0.2.254
Make sure that the default gateways of all hosts are set for the IP address of the host's VLAN interface, set above.
That should do it. Check out other features in the configuration guide:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_1_19/config/index.htm
07-26-2003 12:37 PM
You need to create three L3 VLAN-interfaces, like explained in this description:
For example vlan1:
Switch(config)# vlan vlan1
Switch(config)# interface vlan vlan1
Switch(config-if)# ip address 10.0.0.1 255.255.255.0
Switch(config-if)# no shut
and set default gateway for all vlan1 hosts to 10.0.0.1
make same for vlan2 and vlan3
and set default route:
Switch(config)# ip route 0.0.0.0 0.0.0.0 10.0.2.254
07-26-2003 12:58 PM
First, create your three VLANs:
Switch(config)# vlan 2
Switch(config-vlan)# exit
Switch(config)# vlan 3
Switch(config-vlan)# exit
Switch(config)# vlan 4
Switch(config-vlan)# exit
Then assign ports to the VLANs:
Switch(config)# interface slot/port
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan (VLAN #)
(repeat the above for all ports)
Assign IP addresses to each VLAN:
Switch(config)# interface vlan2
Switch(config-if)# ip address 10.0.0.x 255.255.255.0
(repeat the above for all VLANS, with valid IP addresses within the VLANs' ranges)
Configure a default route to the internet:
ip route 0.0.0.0 0.0.0.0 10.0.2.254
Make sure that the default gateways of all hosts are set for the IP address of the host's VLAN interface, set above.
That should do it. Check out other features in the configuration guide:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_1_19/config/index.htm
07-27-2003 12:04 AM
Thanks,
When I don't use the router to the internet, will the cisco route from one VLAN to the other?
Supose that a workstation 10.0.0.200 wants to communicate with a server 10.0.2.5. Will the catalyst then route all packets from one VLAN to the other?
07-27-2003 04:07 AM
Yes, it will route between VLANs.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide