XXX#show run
Building configuration…
Current configuration : 6200 bytes
!
! Last configuration change at 15:13:00 UTC Tue Jan 21 2014 by anchnet
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname XXXX
!
boot-start-marker
boot-end-marker
!
!
logging buffered 51200 warnings
!
no aaa new-model
!
crypto pki trustpoint TP-self-signed-1543760446
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1543760446
revocation-check none
rsakeypair TP-self-signed-1543760446
!
ip cef
!
!
!
!
!
ip dhcp excluded-address 192.168.20.1
!
ip dhcp pool ccp-pool
import all
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8 4.4.4.4
lease 0 2
!
!
!
no ip domain lookup
ip domain name yourdomain.com
no ipv6 cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
license udi pid CISCO891-K9 sn FGL172624VJ
!
!
username XXX privilege 15 secret 4 XXX
username XXX privilege 15 secret 4 XXX
!
redundancy
!
!
!
!
!
!
!
!
crypto ipsec transform-set ccie esp-3des esp-sha-hmac
mode tunnel
!
!
!
crypto map 121 1 ipsec-isakmp
! Incomplete
!
!
!
!
!
interface FastEthernet0
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
no ip address
!
interface FastEthernet5
no ip address
!
interface FastEthernet6
no ip address
!
interface FastEthernet7
no ip address
!
interface FastEthernet8
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0
description To_Link
no ip address
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
pppoe enable
pppoe-client dial-pool-number 1
crypto map 121
!
interface Vlan1
description $ETH_LAN$
ip address 192.168.20.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
ip tcp adjust-mss 1452
!
interface Async1
no ip address
encapsulation slip
!
interface Dialer1
ip address negotiated
ip mtu 1492
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
ppp pap sent-username XXX password 0 XXX
no cdp enable
crypto map 121
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
!
ip nat inside source list 101 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
!
ip sla auto discovery
access-list 100 permit ip 192.168.20.0 0.0.0.255 10.8.8.0 0.0.0.255
access-list 101 deny ip 192.168.20.0 0.0.0.255 10.8.8.0 0.0.0.255
access-list 101 permit ip 192.168.20.0 0.0.0.255 any
no cdp run
!
!
!
control-plane
!
!
!
!
mgcp profile default
!
!
!
!
!
!
line con 0
login local
line 1
modem InOut
speed 115200
flowcontrol hardware
line aux 0
line vty 0 4
privilege level 15
login local
transport input telnet ssh
line vty 5 15
privilege level 15
login local
transport input telnet ssh
!
!
end
无线路由器的配置上网方法:1.路由器连入网络。
如图所示,将网线接入路由器的WAN口,用网线将电脑与路由器的任意一个Lan口连接。启动电脑,当Lan口闪烁,即说明电脑与路由器成功建立通讯。
2.系统连接到路由器。
打开电脑的wifi,搜索路由器默认wifi名(路由器背面铭牌有写),连接wifi网络。第一次使用路由器一般不用输入wifi密码。
3.进入网关界面。
打开电脑浏览器,输入路由器背后铭牌的网关ip地址(一般是192.168.1.1),进入网关配置界面。(新路由一般会自动d出此界面)
4.设置上网方式。
进入高级设置中的WAN口设置。如果宽带服务需要拨号请选择PPPOE拨号,否则可以选择DHCP自动获取。PPPOE拨号要输入宽带账号密码,连接模式选择自动连接。DHCP自动获取则不用填写。
5.设置wifi名及密码。
进入无线设置中的无线安全,安全模式选择WPA2-PSK模式。WPA加密规则选择AES。设置无线网络秘钥。设置后路由器会自动重启,请输入新的WiFi密码进行连接。
6.配置完成,享受网络。
思科路由器拨号上网配置教程
图中路由器R1为出口路由器通过拨号连接外网,下面简单了解下如何通过它让客户端获取到ip地址并且能上外网:
首先用超终端或CRT进入思科路由器配置模式,然后进行配置
ip dhcp excluded-address 192.168.10.6192.168.10.254(dhcp中被保留不被下放的ip地址)
ip dhcp pool abc(dhcp池的名字起为abc这个可以随意填写)
network 192.168.10.0 255.255.255.0(dhcp下放的网段为192.1.10.x)
default-router 192.168.10.254(网关的设置)
dns-server 218.30.19.40 61.134.1.4(dns的设置)
vpdn enable(启用vpdn服务)
interface Dialer1(创建虚拟拨号接口1)
ipaddress negotiated(ip地址自动协商)
ipmtu 1492(因为ppp占8个字节所以为1492)
ipnat outside(启用nat转换服务并设置为外部接口)
encapsulation ppp(封装ppp协议)
dialer pool 1(为拨号池1)
pppauthentication pap callin(设置ppp的'认证方式)
ppp chap hostname xxxxx(宽带账号)
pppchap password a123456(宽带密码)
ppppap sent-username xxxxx password 123456
interface FastEthernet0/0
no ipaddress
duplex auto
speedauto
pppoe-client dial-pool-number 1(将该端口加入到拨号池1中)
Interface FastEthernet0/1
ip address 192.168.10.254 255.255.255.0
ip nat inside (启用nat服务 并为内部接口)
ip route 0.0.0.0 0.0.0.0 Dialer1(设置默认路由让走拨号端出去)
ip nat inside source list 1 interfaceDialer1 overload(使用nat转换将acl1中的地址用dialer1获取的公网地址转换)
access-list 1 permit 192.168.10.0 0.0.0.255(允许上网的网段)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)