01-11-2020 02:53 PM
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.
Solved! Go to Solution.
01-11-2020 03:04 PM
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.
01-11-2020 03:04 PM
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.
01-11-2020 03:26 PM
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
01-11-2020 04:06 PM
01-17-2020 09:26 AM
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?
01-19-2020 03:37 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