Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Proper VLAN Configuration for 2 connections

I have a 1900 switch that has two dsl modem/router connections coming into the switch on fa0/26 and fa0/27. I would like to split the ports so that 1-12 use one connection and 13-24 use the other. The reason is that I need half of the customers to obtain dhcp from one router and and the other half to obtain dhcp from the other router. What should the configuration look like?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Member

Re: Proper VLAN Configuration for 2 connections

Assuming you have enterprise level code and can configure the devices using IOS, use the following configuration.

>en

#config t

(config)#vtp transparent

(config)#vlan 10

(config)#vlan 20

(config)#interface fastethernet 0/26

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/1

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/2

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/3

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/4

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/5

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/6

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/7

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/8

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/9

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/10

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/11

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/12

(config-if)#vlan-membership static 10

(config)#interface fastethernet 0/27

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/13

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/14

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/15

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/16

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/17

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/18

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/19

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/20

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/21

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/22

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/23

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/24

(config-if)#vlan-membership static 20

1 REPLY
Community Member

Re: Proper VLAN Configuration for 2 connections

Assuming you have enterprise level code and can configure the devices using IOS, use the following configuration.

>en

#config t

(config)#vtp transparent

(config)#vlan 10

(config)#vlan 20

(config)#interface fastethernet 0/26

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/1

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/2

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/3

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/4

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/5

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/6

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/7

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/8

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/9

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/10

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/11

(config-if)#vlan-membership static 10

(config-if)#interface ethernet 0/12

(config-if)#vlan-membership static 10

(config)#interface fastethernet 0/27

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/13

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/14

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/15

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/16

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/17

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/18

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/19

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/20

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/21

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/22

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/23

(config-if)#vlan-membership static 20

(config-if)#interface ethernet 0/24

(config-if)#vlan-membership static 20

136
Views
0
Helpful
1
Replies
CreatePlease to create content