无线DHCP无线网络加密

拓扑

 

先配置这个AP,由于这个AP是傻瓜式的AP,不能进行配置,所以只能在图形界面上配置。

配置PC

注:记得把PC关电,然后给他加个无线网卡哦。

害,我还是给你演示一下吧。

来吧,简单的教一下。

首先,点击这个电脑,然后出现了这个界面。

点击这个关机。

 

然后把这个托到这。

 

 

 

 

 

大功告成,然后开机(怎么关机的就这么开机。) 

 

然后配置PC

 此处

本实验实现用DHCP分配ip给各种设备。

首先,我们配置DHCP服务器的ip,服务器的IP得为静态!

配置DHCP服务器的服务

 

 

 

注,我们得做两个,一个wifi1的DHCP服务,一个wifi2的DHCP服务。

 

这个是wifi2的DHCP配置。

然后我们得配置三层交换机。

Switch>

Switch>

Switch>en

Switch#

Switch#config t

Switch#config terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#vlan 20

Switch(config-vlan)#vlan 100

Switch(config-vlan)#

如果配置错了vlan,直接no vlan xx就行。

Switch(config)#int vlan 10

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan10, changed state to up

Switch(config-if)#ip add 192.168.10.254 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#no shutdown

Switch(config-if)#int vlan 20

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan20, changed state to up

Switch(config-if)#ip add 192.168.20.254 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#no shutdown

Switch(config-if)#int vlan 100

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan100, changed state to up

Switch(config-if)#ip add 192.168.100.254 255.255.255.0

Switch(config-if)#no shut

Switch(config-if)#no shutdown

Switch(config-if)#exit

Switch(config)#

Switch(config)#ip routing

Switch(config)#

Switch#show run

Switch#show running-config

Building configuration...

Current configuration : 1320 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

ip routing

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan10

ip address 192.168.10.254 255.255.255.0

!

interface Vlan20

ip address 192.168.20.254 255.255.255.0

!

interface Vlan100

ip address 192.168.100.254 255.255.255.0

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

Switch#

然后,我们得去划分端口

Switch#

Switch#

Switch#config t

Switch#config terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#

Switch(config)#int f0/1

Switch(config-if)#swi mode acc

Switch(config-if)#swi acc vlan 100

Switch(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

Switch(config-if)#

Switch(config-if)#int f0/2

Switch(config-if)#swi mode acc

Switch(config-if)#swi acc vlan 10

Switch(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Switch(config-if)#

Switch(config-if)#

Switch(config-if)#

Switch(config-if)#int f0/3

Switch(config-if)#swi mode acc

Switch(config-if)#swi acc vlan 20

Switch(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#

都划分好了之后,我们的端口才激活了。

Switch(config-if)#

Switch(config-if)#

Switch(config-if)#end

Switch#

%SYS-5-CONFIG_I: Configured from console by console

Switch#

Switch#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.10.0/24 is directly connected, Vlan10

C 192.168.20.0/24 is directly connected, Vlan20

C 192.168.100.0/24 is directly connected, Vlan100

Switch#

为什么DHCP还没有生效呢?

我们在添加一台PC,把新增的端口直接化划分到vlan100里面去。

 

把新增的端口划分到vlan100里面去。

这里,我们在添加一个wifi3

然后,我们就自动获取到了。

这里,我们把端口划分到vlan里面,直接就有DHCP了,而那边,我们也都划分了,为什么没有ip?什么原因呢?

是因为不在同一个网络,我们得加一条中继。

Switch(config-if)#exit

Switch(config)#

Switch(config)#int vlan 10

Switch(config-if)#ip help

Switch(config-if)#ip helper-address 192.168.100.1

Switch(config-if)#

然后那边的就可以得到ip了

而vlan20

 

所以相同的配置,配置一下vlan20

Switch(config-if)#int vlan 20

Switch(config-if)#ip he

Switch(config-if)#ip help

Switch(config-if)#ip helper-address 192.168.100.1---à指向DHCP服务器

Switch(config-if)#

然后就生效了

本实验重点为DHCP中继服务。

模拟器为傻瓜式,这个不是

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值