cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4728
Views
0
Helpful
2
Replies

Multiple Ip address in same Vlan

AhmedCisco
Level 1
Level 1

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.

 

 

1 Accepted Solution

Accepted Solutions

luis_cordova
VIP Alumni
VIP Alumni

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

 

View solution in original post

2 Replies 2

luis_cordova
VIP Alumni
VIP Alumni

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

 

Abheesh Kumar
VIP Alumni
VIP Alumni

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

Review Cisco Networking for a $25 gift card