取消
显示结果 
搜索替代 
您的意思是: 
cancel
22242
查看次数
0
有帮助
11
回复

C1140 胖ap做dhcp,可以当作路由器用吗?

weihunter
Spotlight
Spotlight
C1140 胖ap做dhcp,可以当作路由器用吗?
老铁们,晚上好
1.我手里有一台C1140的胖ap,现在想让它作为dhcp服务器,分配给无线的用户,我在命令行里面配置了dhcp pool,但是为什么连接的客户端获取不到地址?
2.GigabitEthernet端口地址、BVI端口地址、一定要和dhcp同个网段吗?
3.如果我给GigabitEthernet地址分配一个不同网段的固定ip,加入是x(这个ip是三层交换机里面的一个可以上网网段vlan的其中一个地址),然后无线客户端自动获取的是我设置的dhcp pool,那这样子可以自动nat x这个地址,然后上网吗?
如果不可以的话,是不是就是说,胖ap不能当作和无线路由器一样使用的意思。
谢谢大家
11 条回复11

weihunter
Spotlight
Spotlight
Building configuration...
Current configuration : 2025 bytes
!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname ap
!
logging rate-limit console 9
enable secret 5 $1$1iOJ$bulQL3ZukGDiWaupJtEhN0
!
no aaa new-model
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.43.254
!
ip dhcp pool vlan43
network 192.168.43.0 255.255.255.0
default-router 192.168.43.254
!
!
dot11 syslog
!
dot11 ssid xlk-ec
vlan 27
authentication open
guest-mode
!
!
!
username xinlikang privilege 15 password 7 022F107B1C0A0E2F
!
!
bridge irb
!
!
interface Dot11Radio0
no ip address
no ip route-cache
!
encryption vlan 27 key 1 size 40bit 7 348BB1418002 transmit-key
encryption vlan 27 mode wep mandatory
!
ssid xlk-ec
!
antenna gain 0
station-role root bridge wireless-clients
!
interface Dot11Radio0.27
encapsulation dot1Q 27 native
no ip route-cache
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 spanning-disabled
!
interface Dot11Radio1
no ip address
no ip route-cache
shutdown
!
encryption vlan 27 key 1 size 40bit 7 84FCCC47AA0D transmit-key
encryption vlan 27 mode wep mandatory
!
ssid xlk-ec
!
antenna gain 0
station-role root
!
interface Dot11Radio1.27
encapsulation dot1Q 27 native
no ip route-cache
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
!
interface GigabitEthernet0
no ip address
no ip route-cache
duplex auto
speed auto
no keepalive
!
interface GigabitEthernet0.27
encapsulation dot1Q 27 native
no ip route-cache
bridge-group 1
bridge-group 1 spanning-disabled
!
interface BVI1
ip address 192.168.27.4 255.255.255.0
no ip route-cache
!
ip default-gateway 172.16.0.254
ip http server
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
!
!
!
line con 0
line vty 0 4
login local
!
end

fortune
VIP Alumni
VIP Alumni
1.AP 一般情况不作为DHCP server使用,术业有专攻,AP 就是AP
2. AP 是不能作为无线路由器的,因为AP 不具备路由、NAT 两个重要的路由功能

weihunter
Spotlight
Spotlight
vsop5207 发表于 2017-10-31 09:44
1.AP 一般情况不作为DHCP server使用,术业有专攻,AP 就是AP
2. AP 是不能作为无线路由器的,因为AP 不具 ...

谢谢,我就是不理解,那么胖ap存在的意义是什么呢?

fortune
VIP Alumni
VIP Alumni
weihunter 发表于 2017-10-31 11:04
谢谢,我就是不理解,那么胖ap存在的意义是什么呢?

这很好理解啊,比如你一个公司不大,买两三台AP ,比那些上面TP 的要稳定多了,可以不用wlc(很贵的),等公司大了,那买控制器了,又可以转变为瘦AP 加入统一管理

jingjian
Spotlight
Spotlight
可以参考如下配置,另外也是支持不同网段的
clock timezone Beijing 8
ip dhcp excluded-address 10.255.1.1
ip dhcp excluded-address 10.255.1.254
!
ip dhcp pool wlan
network 10.255.1.0 255.255.255.0
default-router 10.255.1.254
dns-server 8.8.8.8
lease 0 8
!
!
interface Dot11Radio0
!
encryption mode ciphers aes-ccm
!
ssid Cisco-WLAN
!
!
no shutdown
interface Dot11Radio1
!
encryption mode ciphers aes-ccm
!
ssid Cisco-WLAN
!
!
no shutdown
!
dot11 ssid Cisco-WLAN
authentication open
authentication key-management wpa version 2
guest-mode
wpa-psk ascii cisco123
interface BVI1
ip address 10.255.1.1 255.255.255.0
!
ip default-gateway 10.255.1.254
在1800,2800,3800之前的AP,胖AP的意义主要为了小企业设计的,这样会节省控制器的价格。
现在在1800,2800,3800已经具备控制器的功能,这样小企业可以统一管理网线网络
AP是作为有线网络的扩展,因为本身只有一个网络接口,所以不能当作路由器来使用,做DHCP是没有问题的

weihunter
Spotlight
Spotlight
vsop5207 发表于 2017-10-31 11:15
这很好理解啊,比如你一个公司不大,买两三台AP ,比那些上面TP 的要稳定多了,可以不用wlc(很贵的),等 ...

谢谢你,意思就是说,它只是作为一个无线信号的收发,然后上网的话,还是走网关,让上层设备去做nat出去,可以这么理解吗?

weihunter
Spotlight
Spotlight
arvinjing 发表于 2017-10-31 13:59
可以参考如下配置,另外也是支持不同网段的
clock timezone Beijing 8

您好,我想请问一下,ap里面的bvi接口是ap管理接口的意思是吧?那么ap里面的interface GigabitEthernet0,这个口又是干什么的呢?我的ap就一个console+一个物理口而已。

何康林
Level 1
Level 1
ap里面bvi接口是一个桥接口,因为物理口g0口是默认加入到这个桥接口里面的,所以在桥接口上面的配置属性会被继承在物理口上。

weihunter
Spotlight
Spotlight
何康林 发表于 2017-11-1 10:53
ap里面bvi接口是一个桥接口,因为物理口g0口是默认加入到这个桥接口里面的,所以在桥接口上面的配置属性会 ...

谢谢你了,刚刚接触思科无线设备,多多指教

YilinChen
Spotlight
Spotlight
1140 具备 DHCP功能,
但不能当 家庭无线宽带路由器,不具备 NAT 功能;
可实现多SSID对应不同VLAN;

weihunter
Spotlight
Spotlight
YilinChen 发表于 2017-11-2 08:36
1140 具备 DHCP功能,
但不能当 家庭无线宽带路由器,不具备 NAT 功能;
可实现多SSID对应不同VLAN;

还有一件事,1140里面可以设置管理地址bvi,还有一个网关、ip defalt-gateway,如果我在ap上面做了dhcp,客户端获取到了地址,意思是所有的流量下一条都会是ip default-gateway设置的这个吗?
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接