03-23-2016 06:09 AM - edited 03-08-2019 05:05 AM
Hi,
I have some dilema , I need to do some changes on network.
Network isn't big but there is a few vlans. I have router on which is configured "ruting on stik" for those vlans, behind is cisco switch 2950 and so on.
Now I need to insert one switch 3560 instead first switch and on that 3560 I wont to enabling routing between vlans.
the part that confuses me is that on router is configure Ip NAT and dhcp for some vlans. Dhcp isn't a problem but I dont understend how NAT will work.
And one more thing , why there is no route in routing table , this is output:
SW3560#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
...
!
interface Vlan1
no ip address
shutdown
!
interface Vlan2
ip address 172.16.2.1 255.255.255.0
!
interface Vlan3
ip address 172.16.3.1 255.255.255.0
!
interface Vlan4
ip address 172.16.4.1 255.255.255.0
!
interface Vlan5
no ip address
!
interface Vlan6
no ip address
SW3560#sh version
Cisco IOS Software, C3560 Software (C3560-IPBASEK9-M), Version 12.2(55)SE9, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Mon 03-Mar-14 22:36 by prod_rel_team
Image text-base: 0x01000000, data-base: 0x02D00000
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)
Solved! Go to Solution.
03-23-2016 06:50 AM
The interfaces are not up/up so they won't show in the IP routing table.
How have you connected everything up ?
Jon
03-23-2016 06:31 AM
Hi!
Please configure the command "ip routing" in globlal configuration mode. After that I suggest you to check if the vlan interfaces are in up/up state with the "show ip int br" command.
About the NAT question, you will have to create an ACL which will match the traffic you want to get nat'd.
Please apply that ACL with the command ip nat inside source list [ACL NAME] interface [THE INTERFACE OF YOUR ROUTER FACING YOUR ISP]
Apply NAT in the interface facing your LAN as INSIDE with the command ip nat inside in the interface configuration mode.
Do the same with your interface facing your ISP/WAN with the command ip nat out in the interface configuration mode.
Regards!
JC
03-23-2016 06:46 AM
hi,
thanks for replay.
I configured ip routing and interfaces vlan are up . Thats why I dont understand why the rating table is empty.
part of config.:
!
no aaa new-model
system mtu routing 1500
ip routing
!
SW3560#sh ip int brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM administratively down down
Vlan2 172.16.2.1 YES NVRAM up down
Vlan3 172.16.3.1 YES NVRAM up down
Vlan4 172.16.4.1 YES NVRAM up down
Vlan5 unassigned YES NVRAM down down
Vlan6 unassigned YES NVRAM down down
FastEthernet0/1 unassigned YES unset down down
FastEthernet0/2 unassigned YES unset down down
03-23-2016 06:50 AM
The interfaces are not up/up so they won't show in the IP routing table.
How have you connected everything up ?
Jon
03-23-2016 07:25 AM
you're right.
I am not physically connected devices.I try with one port and its work, now routing table isn't emty.
thanks . I'm not thinking ...
03-23-2016 07:18 AM
Hi,
Your interfaces are not in up/up state since no vlans are created in the vlan database of your switch.
Please configure vlan 1, vlan 2 vlan 3 and so on in global configuration mode.
If the interfaces do not go up/up state please configure a port with its respective vlan in interface configuration mode with the switchport access vlan 2 command. (change numer 2 with its respective vlan number).
Hope it helps, best regards!
JC
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