12-25-2018 02:34 AM - edited 03-08-2019 04:53 PM
Hi Gents,
Is it possible to have multiple IP's in same Vlan? Like i have a network 192.168.2.0/25. I have Sales and Admin dept. I would like to subnet 192.168.2.0 and 192.168.2.128. Now under the Sales VLAN, if i need to add multiple host IP address, how do i do?
If possible, please illustrate an example.
PS: I am a newbie to Cisco.
Solved! Go to Solution.
12-25-2018 04:06 AM
Hi @AhmedCisco,
If you want to segment your network, I suggest you do it with the Router-on-a-Stick method.
Router
R(config)#interface fa0/0 <- interface to switch
R(config-if)#no shutdown
R(config)#interface fa0/0.10 <- vlan number
R(config-subif)#encapsulation dot1q 10 <- vlan number
R(config-subif)#ip address 192.168.2.0 255.255.255.128
R(config)#interface fa0/0.20 <- vlan number
R(config-subif)#encapsulation dot1q 20 <- vlan number
R(config-subif)#ip address 192.168.2.128 255.255.255.128
Switch
S(config)#interface fa0/1 <- interface to router
S(config-if)#switchport mode trunk
S(config)#interface fa0/2 <- interface to pc on vlan 10
S(config-if)#switchport mode access
S(config-ir)#switchoort accesos vlan 10
S(config)#interface fa0/3 <- interface to pc on vlan 20
S(config-if)#switchport mode access
S(config-ir)#switchoort accesos vlan 20
Regards
12-25-2018 04:06 AM
Hi @AhmedCisco,
If you want to segment your network, I suggest you do it with the Router-on-a-Stick method.
Router
R(config)#interface fa0/0 <- interface to switch
R(config-if)#no shutdown
R(config)#interface fa0/0.10 <- vlan number
R(config-subif)#encapsulation dot1q 10 <- vlan number
R(config-subif)#ip address 192.168.2.0 255.255.255.128
R(config)#interface fa0/0.20 <- vlan number
R(config-subif)#encapsulation dot1q 20 <- vlan number
R(config-subif)#ip address 192.168.2.128 255.255.255.128
Switch
S(config)#interface fa0/1 <- interface to router
S(config-if)#switchport mode trunk
S(config)#interface fa0/2 <- interface to pc on vlan 10
S(config-if)#switchport mode access
S(config-ir)#switchoort accesos vlan 10
S(config)#interface fa0/3 <- interface to pc on vlan 20
S(config-if)#switchport mode access
S(config-ir)#switchoort accesos vlan 20
Regards
12-25-2018 04:37 AM
Hi,
Sales Subnet 192.168.2.0/25
Network Address : 192.168.2.0
Subnet Mask : 255.255.255.128
Hosts per Subnet : 126
Admi Subnet 192.168.2.128/25
Network Address : 192.168.2.128
Subnet Mask : 255.255.255.128
Hosts per Subnet : 126
You can use 126 host IP's from each subnets.
HTH
Abheesh
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