Routers
--
Questions
--
Followers
Top Experts
I have 2 CISCO 3560 switch which i need to configure 2 seperate VLAN,
i have configured 802.1q trunk for the connection between these 2 switch,
I have configured as follow for 3560 sw1:
Building configuration...
Current configuration : 3540 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
no aaa new-model
!
ip subnet-zero
ip routing
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/5
switchport access vlan 5
!
interface Vlan1
ip address 10.102.1.1 255.255.255.0
!
interface Vlan5
ip address 10.102.2.1 255.255.255.0
!
interface GigabitEthernet0/52
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.102.1.254
The config for 3560 sw2 is only to enable 1 of the port for VLAN 5 as follow:
!
interface GigabitEthernet0/5
switchport access vlan 5
!
My biggest problem is to enable internet access for users on VLAN 5.
As shown on the 3560 sw1 config - our gateway is 10.102.1.254.
users on VLAN 5 can access to each other machine & server on the 2 3560 switches.
But, they can't access internet through the gateway on VLAN 1.
Is there any special routing rules to add for CISCO IOS to allow access to gateway bt at the same time preventing users from both VLAN to communicate?
Cheers
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
No. We do not have a router with 2 subinterfaces in each VLAN range.
We only have the default gateway ( physically connected to 3560 sw1) which is 10.102.1.254 as shown in the config file for 3560 sw1.
Both 3560G switches is connected via a Gigabit link ( 802.1q Trunk )
Is there any other way then to install a router as CISCO 3560 is also a Layer 3 switch?
I was thinking that i have missed out certain configuration in-order for the routing to function.
Cheers
Let me check more and i'll get back to you later today






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
If you have the EMI image installed, you need to put in a default route and issue the command "ip routing" which will turn on routing on the switch.
Not that it matters, but why do you have an etherchannel with only one port?

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
To fix this, you should divide your allocated subnet to 10.102.1.0/25 and 10.102.1.128/25.
Sorry for the late reply.
The sh version command results
3560-48-IDF#sh version
Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version 12.2(25)SEB4, RELEA
SE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Tue 30-Aug-05 14:19 by yenanh
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SE1, RELEASE SOFTWAR
E (fc)
3560-48-IDF uptime is 5 weeks, 2 hours, 43 minutes
System returned to ROM by power-on
System image file is "flash:c3560-ipbase-mz.122
EB4.bin"
cisco WS-C3560G-48TS (PowerPC405) processor (revision C0) with 118784K/12280K by
tes of memory.
Processor board ID FOC1035Z691
Last reset from power-on
4 Virtual Ethernet interfaces
52 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
I have configured the 3560 SW1 as follow:
Building configuration...
Current configuration : 3540 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
no aaa new-model
!
ip subnet-zero
ip routing
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/5
switchport access vlan 5
!
interface Vlan1
ip address 10.102.1.1 255.255.255.0
!
interface Vlan5
ip address 10.102.2.1 255.255.255.0
!
interface GigabitEthernet0/51
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet0/52
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.102.1.254
*The config for 3560 SW2 is only to enable 1 of the port for VLAN 5 (Server) as follow:
!
interface GigabitEthernet0/5
switchport access vlan 5
!
I have set the user work station to point to 10.102.2.1 (VLAN 5) as gateway.
But, the users on 3560 SW1 & Server on 3560 SW2 are still unable to surf internet.
We have a CheckPoint appliance as ourGateway Firewall affect the routing?
Will we need to create any special routing on Check point?
From 3560 SW1 console, i can ping both subnet machine including the gateway on VLAN 1.
But, user machine on VLAN 5 are unable to ping the gateway on VLAN 1.
Cheers,






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
You're allocated one subnet, that's 10.102.1.0/24. So when you try to use 10.102.2.0/24, your gateway doesnt recognize this subnet and so it just ignore packets from this network,
The only solution is to change your IP addressing scheme. You must devide your allocated IP address into 2 part. You cannot use other subnet.
Lets say you have 1 client in VLAN5. This client has IP address, 10.102.2.3, for example
When this client want to reach the internet, it send IP packet to its defautl gateway, that's 10.102.2.1
Then your multilayer switch lookup the routing table, found the static route 0.0.0.0 0.0.0.0 10.102.1.254.
This next hop on VLAN 1. So it forward packet from VLAN5 to VLAN1, destination is 10.102.1.254.
If security settings is loose, the gateway at 10.102.1.254 forward the packet to the internet.
If security setting on the gateway is strict, it will drop all packet from 10.102.2.0/24, because your gateway knows that it connected to 10.102.1.0/24, and it doesnt know about 10.102.2.0/24. Then it could think that the packet from 10.102.2.0/24 is a fake packet, an attact from the internet,... Invalid source IP address.
From the gateway perspective, 10.102.2.0/24 is invalid. So when a packet from outside world want to reach 10.102.2.0/24, the gateway just send it to the default route, usually to null0, which means that your packet will be discarded

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
If we can add a return route, that would be great
Thanks for your help & suggestion.
The problem is re-solved.
We got the guys in-charge of the gateways to add the new network in to the gateway appliance config & allow the new VLAN 5 subnet to access internet.
And now we are able to surf internet from the new VLAN 5 network.
Also, both VLAN 1 & VLAN 5 users are un-able to access each other network which was what we want to achive.
I will divide the points between the both of u guys.
Predragpetrovic for giving us the correct configuration method and solution (Vlan Config).
Mikecr for guiding us on the correct path to troubleshoot the issues (Gateway policy).
Cheers!






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Routers
--
Questions
--
Followers
Top Experts
A router is a networking device that forwards data packets between computer networks. Routers perform the "traffic directing" functions on the Internet. The most familiar type of routers are home and small office cable or DSL routers that simply pass data, such as web pages, email, IM, and videos between computers and the Internet. More sophisticated routers, such as enterprise routers, connect large business or ISP networks up to the powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone. Though routers are typically dedicated hardware devices, use of software-based routers has grown increasingly common.