10-12-2012 07:27 AM - edited 03-04-2019 05:50 PM
Hallo all,
i just watched this movie
http://www.youtube.com/watch?v=edCzr5L4Zec
and i now understand how i can sing a port to a vlan, but have one question.
Iff i have a port lets say: fa 0/4 and that is connected to a AP, and on the AP there 2 Vlan's. how do i sing the port fa 0/4 to Vlan 30 and 40 at the same time ?
If i need to give more info, then let me no.
Greets Davano
Solved! Go to Solution.
10-12-2012 08:03 AM
You would create 2 vlans (30 and 40) on the switch. Then trunk the port that the AP connects to. By default, Cisco switches allow all vlans on the trunk, so you'd see vlan 1,30, and 40.
The AP would be configured with vlans 30 and 40 and would tag its traffic accordingly.
HTH,
John
*** Please rate useful posts ****
10-12-2012 09:17 AM
HI
Use like this.
first create vlan 30 and 40.
Switch#Config t
Switch(config)#vlan 30
Switch(config-vlan)#name WLAN1
Switch#Config t
Switch(config)#vlan 40
Switch(config-vlan)#name WLAN2
configure port like this:
Switch#Config t
Switch(config)#Int fa0/4
Switch(config-if)#description *** Connection to AP ***
Switch(config-if)Switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 30,40
Regards
Please rate if it helps.
10-14-2012 04:59 PM
Hi,
The command is not ip dhcp network
it is ip dhcp pool
see eaxmple below:
ip dhcp excluded-address 20.0.0.1
!
ip dhcp pool test
network 20.0.0.0 255.0.0.0
default-router 20.0.0.1
In this case the name of the pool is test
HTH
10-15-2012 12:29 PM
Hello,
Check the following document:
https://supportforums.cisco.com/community/help#discussions_correct
You can mark/select one or more reply as correct by clicking on the 'Correct Answer' button shown below.
Note: This 'Correct Answer' button will be only visible/available to the poster of the question.
10-12-2012 08:03 AM
You would create 2 vlans (30 and 40) on the switch. Then trunk the port that the AP connects to. By default, Cisco switches allow all vlans on the trunk, so you'd see vlan 1,30, and 40.
The AP would be configured with vlans 30 and 40 and would tag its traffic accordingly.
HTH,
John
*** Please rate useful posts ****
10-12-2012 09:10 AM
Thanks for the reply,
Than i now what i have to do, thanks again.
Greets Davano
10-12-2012 09:17 AM
HI
Use like this.
first create vlan 30 and 40.
Switch#Config t
Switch(config)#vlan 30
Switch(config-vlan)#name WLAN1
Switch#Config t
Switch(config)#vlan 40
Switch(config-vlan)#name WLAN2
configure port like this:
Switch#Config t
Switch(config)#Int fa0/4
Switch(config-if)#description *** Connection to AP ***
Switch(config-if)Switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 30,40
Regards
Please rate if it helps.
10-14-2012 11:56 AM
Thanks for the reply,
have it working, but have one more quiestion about a router.
I trying to make a dhcp server on the router for a vlan, the commends i used are:
Router>enable
Router#conf t
Router(config)#ip dhcp ex
Router(config)#ip dhcp excluded-address 20.0.0.1
Router(config)#ip dhcp pool servers
Router(dhcp-config)#default-router 20.0.0.1
Router(dhcp-config)#network 20.0.0.0 255.0.0.0
Router(dhcp-config)#lease 0 23
when is use the commend:
Router(dhcp-config)#lease 0 23
it gives me a ^ below the l, and the when i change the server to dhcp i will get a ip end subnetmask,
but it wont get a gateway, what did i do worng
this is my config file from the router:
Router1#sh run
Building configuration...
Current configuration : 1072 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname Router1
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
enable password 7 0802455D0A16
!
!
!
!
!
!
username Test password 7 0822455D0A16
!
!
!
!
!
ip domain-name test.nl
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1.5
encapsulation dot1Q 5 native
ip address 5.0.0.1 255.0.0.0
!
interface FastEthernet0/1.10
encapsulation dot1Q 10
ip address 10.0.0.1 255.0.0.0
!
interface FastEthernet0/1.20
encapsulation dot1Q 20
ip address 20.0.0.1 255.0.0.0
!
interface FastEthernet0/1.30
encapsulation dot1Q 30
ip address 30.0.0.1 255.0.0.0
!
ip classless
!
!
!
banner login ^CThis is the login banner^C
banner motd ^CThis in the message of the day^C
!
!
!
!
logging 10.0.0.1
line con 0
password 7 0822455D0A16
login
line vty 0 4
password 7 0822455D0A16
login local
transport input ssh
!
!
!
end
Router1#
Greets
10-14-2012 03:37 PM
Hello Davano,
So are you saying the DHCP provides an IP to the end users but it does not provide a default gateway?
Hmm the configuration looks good. just to make sure it should be
ip dhcp pool Servers
network 20.0.0.0 255.0.0.0
default-router 20.0.0.1
exit
ip dhcp excluded-address 20.0.0.1
Can you configured it one more time and try to get an IP?
Regards
Julio
10-14-2012 03:44 PM
Thanks for the reply.
yes the and user wont get a gateway, but i wil try it like you sad, will post te results in a few min?
but again thanks for the reply.
Greets
Hello,
it looks like there is somthing wrong with packer tracer,
when i do
Router1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#ip dhcp network servers
i get a ^ at the n from network
Greets
10-14-2012 04:59 PM
Hi,
The command is not ip dhcp network
it is ip dhcp pool
see eaxmple below:
ip dhcp excluded-address 20.0.0.1
!
ip dhcp pool test
network 20.0.0.0 255.0.0.0
default-router 20.0.0.1
In this case the name of the pool is test
HTH
10-15-2012 12:24 PM
Tanks all for the reply's.
It is indeed:
ip dhcp excluded-address 20.0.0.1
!
ip dhcp pool test
network 20.0.0.0 255.0.0.0
default-router 20.0.0.1
today i did it on a real router, en than the end users do get the gateway, so it works.
and again all thanks for the help
one more question where do i sad the question to answered ?
Greets
10-15-2012 12:29 PM
Hello,
Check the following document:
https://supportforums.cisco.com/community/help#discussions_correct
You can mark/select one or more reply as correct by clicking on the 'Correct Answer' button shown below.
Note: This 'Correct Answer' button will be only visible/available to the poster of the question.
10-15-2012 12:36 PM
Thanks for the reply,
done
Greets
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