11-03-2017 10:41 AM - edited 03-05-2019 09:25 AM
I am unable to ping my router when I have my config as so:
interface GigabitEthernet0/0/1
description Data Vlan - MX64 Link
ip address 172.30.139.1 255.255.255.0
ip helper-address 172.30.101.21
no ip redirects
ip nat inside
no cdp enable
h323-gateway voip interface
h323-gateway voip bind srcaddr 172.30.139.1
ip virtual-reassembly
!
When my config is like below, I can ping the router:
interface GigabitEthernet0/0/0.139
description Data Vlan - MX64 Link
encapsulation dot1Q 139
ip address 172.30.139.1 255.255.255.0
ip helper-address 172.30.101.21
no ip redirects
ip nat inside
no cdp enable
h323-gateway voip interface
h323-gateway voip bind srcaddr 172.30.139.1
ip virtual-reassembly
!
My switch port link is configured as so:
interface GigabitEthernet1/0/52
description Link to ROUTER
switchport mode trunk
!
Router link:
interface GigabitEthernet0/0/0
description Link to Switch INSIDE
no ip address
negotiation auto
!
I'm trying to save some ports and direct connect to my router as apposed to having multiple connectings com into my switch and over my trunk.
11-03-2017 11:10 AM
If I understood you requirement correctly
on the switch change this
interface GigabitEthernet1/0/52
description Link to ROUTER
switchport mode trunk
To this:
interface GigabitEthernet1/0/52
description Link to ROUTER
switchport mode access
switchport access vlan 139
11-03-2017 11:12 AM - edited 11-03-2017 11:15 AM
I have 3 other vlans. Do I need to add access for those as well? Edit: Still not able to pint my router from my switch when applying the suggested config.
11-03-2017 11:18 AM
No. just the one vlan and you will be able to ping the router. You do have another port on the switch connecting to your router right? Carrying the other vlans... if not then I would need more detailed info regarding your setup
11-03-2017 11:22 AM
That is the only connection between the switch and router.
Router:
!
!
interface GigabitEthernet0/0/0
description Link to Switch INSIDE
no ip address
negotiation auto
!
interface GigabitEthernet0/0/0.10
description Vlan to Fiber Network
encapsulation dot1Q 10
ip address 172.20.10.139 255.255.255.0
no cdp enable
service-policy output WAN-QOS
ip virtual-reassembly
!
interface GigabitEthernet0/0/0.99
shutdown
!
interface GigabitEthernet0/0/0.104
description Imaging and Test LAN
encapsulation dot1Q 104
ip address 172.30.104.2 255.255.255.0
ip helper-address 172.30.101.21
ip helper-address 172.30.102.81
!
interface GigabitEthernet0/0/0.200
description VOICE
encapsulation dot1Q 200
ip address 10.30.139.1 255.255.255.0
ip nat inside
no cdp enable
ip virtual-reassembly
!
interface GigabitEthernet0/0/1
description Data Vlan - MX64 Link
ip address 172.30.139.1 255.255.255.0
ip helper-address 172.30.101.21
no ip redirects
ip nat inside
negotiation auto
no cdp enable
h323-gateway voip bind srcaddr 172.30.139.1
ip virtual-reassembly
!
interface GigabitEthernet0/0/2
no ip address
shutdown
negotiation auto
Switch:
!
interface FastEthernet0
no ip address
shutdown
!
interface GigabitEthernet1/0/1
description link to Charter EPLAN
switchport access vlan 10
switchport trunk native vlan 10
switchport trunk allowed vlan 10
switchport mode trunk
speed 100
duplex full
!
interface GigabitEthernet1/0/2
description Copper Link to Switch BAY2960Xb
switchport mode trunk
!
interface GigabitEthernet1/0/3
description Link to MX64
switchport access vlan 139
switchport mode access
!
interface GigabitEthernet1/0/4
switchport access vlan 139
switchport mode access
switchport voice vlan 200
spanning-tree portfast
!
interface GigabitEthernet1/0/5
switchport access vlan 139
switchport mode access
switchport voice vlan 200
spanning-tree portfast
!
interface GigabitEthernet1/0/52
description Link to ROUTER
switchport mode trunk
!
I want to plug my fiber network into my switch and plug the MX connection directly into my router.
11-03-2017 11:40 AM
Is the router not routing for the other vlans??
11-03-2017 11:44 AM
It is routing all the Vlans.
11-03-2017 11:57 AM
Sorry man it's late night out here explain to me exactly what you are trying to achieve... you wanna save ports where? On the switch or router? Or you don't want every vlan to have access to you router etc
11-03-2017 12:00 PM
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