cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1018
Views
0
Helpful
5
Replies

Need Help InterVLAN routing

Whatever help I can get is much appreciated. I am working on a Cisco 891 and I am trying to setup interVLAN routing so that 10 VMs on an ESXi server can communicate with each other. I am connected to the router via command port and here is the configurations that I did. 

 

Enable DHCP

Router (config) # ip dhcp pool NET-POOL

Router (dhcp-config) # network 172.20.1.1 255.255.0.0

Router (dhcp-config) # default-router 172.20.1.1

Router (dhcp-config) # exit

Router (config) # ip dhcp excluded-address 172.20.1.1 172.20.1.255 (router & server)

Router # copy run start

Router # show config

Create Vlans

Router> enable

Router # configure t

Router (config)# vlan 101

Router (config-vlan) # name User

Router (config-vlan) # vlan 102

Router (config-vlan) # name Public

Router (config-vlan) # vlan 103

Router (config-vlan) # name External

Router (config-vlan) # vlan 104

Router (config-vlan) # name Internal

Verify vlans created

Router> sh vlan-switch

Add interface to vlan

Router (config) # interface fa1

Router (config-if) # switchport access vlan 101

Router (config-if) # no shut

Router (config-if) # exit

Router (config) # interface fa2

Router (config-if) # switchport access vlan 102

Router (config-if) # no shut

Router (config-if) # exit

Router (config) # interface fa3

Router (config-if) # switchport access vlan 103

Router (config-if) # no shut

Router (config-if) # exit

Router (config) # interface fa4

Router (config-if) # switchport access vlan 104

Router (config-if) # no shut

Router (config-if) # exit

Add ip to vlan

Router (config) # int vlan 101

Router (config-if) # ip address 172.20.10.1 255.255.255.0

Router (config-if) # int vlan 102

Router (config-if) # ip address 172.20.20.1 255.255.255.0

Router (config-if) # int vlan 103

Router (config-if) # ip address 172.20.30.1 255.255.255.0

Router (config-if) # int vlan 104

Router (config-if) # ip address 172.20.40.1 255.255.255.0

 

I know that I most likely did something wrong but I don't know what it is any help would be extremely appreciated. 

1 Accepted Solution

Accepted Solutions

Francesco Molino
VIP Alumni
VIP Alumni

Hi

 

First of all your DHCP pool isn't correct because you're configuring a /16 while your vlans are all /24.

You can remove it by issuing the command:  no ip dhcp pool NET-POOL

You'll need to create 1 pool per vlan.

Example for VLAN101 (172.20.10.0/24)

ip dhcp pool VLAN101

 network 172.20.10.0 255.255.255.0

 default-router 172.20.10.1

!

ip dhcp exclude 172.20.10.1 172.20.10.5 --> Let's assume you want to keep the 1st 5 IPs for future usage.

 

You'll repeat this for each vlan by changing the dhcp name, network and default-router info.

 

Then, each subnets can talk to each other as ip routing is enabled by default on a router which is its primary usage.


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

5 Replies 5

Francesco Molino
VIP Alumni
VIP Alumni

Hi

 

First of all your DHCP pool isn't correct because you're configuring a /16 while your vlans are all /24.

You can remove it by issuing the command:  no ip dhcp pool NET-POOL

You'll need to create 1 pool per vlan.

Example for VLAN101 (172.20.10.0/24)

ip dhcp pool VLAN101

 network 172.20.10.0 255.255.255.0

 default-router 172.20.10.1

!

ip dhcp exclude 172.20.10.1 172.20.10.5 --> Let's assume you want to keep the 1st 5 IPs for future usage.

 

You'll repeat this for each vlan by changing the dhcp name, network and default-router info.

 

Then, each subnets can talk to each other as ip routing is enabled by default on a router which is its primary usage.


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Alright I did that, but I check the status and they are marked as down see below 

Router#show ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
Async1                     unassigned      YES unset  down                  down
FastEthernet0              unassigned      YES unset  up                    up
FastEthernet1              unassigned      YES unset  down                  down
FastEthernet2              unassigned      YES unset  down                  down
FastEthernet3              unassigned      YES unset  down                  down
FastEthernet4              unassigned      YES unset  down                  down
FastEthernet5              unassigned      YES unset  down                  down
FastEthernet6              unassigned      YES unset  up                    up
FastEthernet7              unassigned      YES unset  down                  down
FastEthernet8              unassigned      YES unset  administratively down down
GigabitEthernet0           unassigned      YES unset  administratively down down
Vlan1                      unassigned      YES unset  up                    up
Vlan101                    172.20.10.1     YES manual down                  down
Vlan102                    172.20.20.1     YES manual down                  down
Vlan103                    172.20.30.1     YES manual down                  down
Vlan104                    172.20.40.1     YES manual down                  down

Interfaces on which you configured to be in access mode should be connected and then the svi related to vlan associated will come up.

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Sorry for the late reply, I have been busy the last week. When you say the interfaces should be connected, what exactly do you mean by connected?

Connected means they should be up with a cable connected to each of them.

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question