色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

CISCO路由器的每個(gè)端口都有IP嗎

CISCO路由器的每個(gè)端口都有IP嗎?

固定IP上網(wǎng)配置: 現(xiàn)有客戶(hù)需要使用思科的2600路由器上網(wǎng),用戶(hù)為10M光纖,申請(qǐng)了16個(gè)固定IP,IP為61.161.xxx.2-61.161.xxx.14, 默認(rèn)網(wǎng)關(guān)是61.161.xxx.1。內(nèi)網(wǎng)IP段192.168.1.0,客戶(hù)要實(shí)現(xiàn)192.168.1.50-192.168.1.60之間的IP可以上網(wǎng),其余的不可以。 路由器e0/0接口為WAN外網(wǎng)接口,e0/1為L(zhǎng)AN內(nèi)網(wǎng)接口 interface e0/0 ip address 61.161.xxx.2 255.255.255.240 //這里可以使用61.161.xxx.2-14個(gè)地址中的任意一個(gè),這里就用2 ip nat outside full-duplex no shutdown interface e0/1 ip address 192.168.1.1 255.255.255.0 ip nat inside full-duplex no shutdown //設(shè)置放行的IP地址列表 access-list 1 permit host 192.168.1.50 access-list 1 permit host 192.168.1.51 access-list 1 permit host 192.168.1.52 access-list 1 permit host 192.168.1.53 access-list 1 permit host 192.168.1.54 access-list 1 permit host 192.168.1.55 access-list 1 permit host 192.168.1.56 access-list 1 permit host 192.168.1.57 access-list 1 permit host 192.168.1.58 access-list 1 permit host 192.168.1.59 access-list 1 permit host 192.168.1.60 ip nat pool intoout 61.161.xxx.2 61.161.xxx.2 netmask 255.255.255.240 //這里復(fù)用61.161.xxx.2的地址,也可以這樣寫(xiě):ip nat pool intoout 61.161.xxx.2 61.161.xxx.14 netmask 255.255.255.252 這樣寫(xiě)之后,從地址池里選擇任意可用的外網(wǎng)ip 轉(zhuǎn)換。 ip nat inside source list 1 pool intoout Overload ip route 0.0.0.0 0.0.0.0 61.161.xxx.1 //默認(rèn)網(wǎng)關(guān),即電信端的地址,下一跳地址。 配置后就可以上網(wǎng)了,但是客戶(hù)端必須設(shè)置固定IP,配置DNS,不配置,因?yàn)闆](méi)有開(kāi)啟DHCP服務(wù),所以必須設(shè)置固定IP。 開(kāi)啟DHCP,則需要這樣配置: ip dhcp pool ABC network 192.168.1.0 default router 192.168.1.1 dns-server 202.96.64.68 ip dhcp excluded-address 192.168.1.1 需要除去網(wǎng)關(guān)的地址,要不就沖突了。 沒(méi)有ip的限制,就是單純的上網(wǎng),刪除那個(gè)access-list 1 permit host 192.168.1.50 至access-list 1 permit host 192.168.1.60 增加 access-list 1 permit 192.168.1.0 255.255.255.0就可以了。 PPPOE撥號(hào)上網(wǎng)配置: 對(duì)以設(shè)置PPPOE上網(wǎng),以太網(wǎng)接口LAN的配置不變,需要更改外網(wǎng)口WAN的配置和訪(fǎng)問(wèn)控制列表,增加VPDN的配置。用戶(hù)名是admin,密碼 123456,配置過(guò)程如下: interface e0/1 ip address 192.168.1.1 255.255.255.0 ip nat inside full-duplex interface Dialer1 //建立一個(gè)撥號(hào)接口 ip address negotiated //撥號(hào)接口的地址是通過(guò)協(xié)商獲得的 ip nat outside encapsulation ppp //封裝為ppp協(xié)議 dialer pool 1 //建立撥號(hào)池為 1 dialer-group 1 //建立撥號(hào)組1 有時(shí)候需要設(shè)置MTU值比如MTU=1492 mtu 1492 ppp authentication pap callin //加密的驗(yàn)證模式為pap,是chap,直接更改就可以了。 ppp pap sent-username admin password 0 123456 //用戶(hù)名和密碼 vpdn enable vpdn-group office request-dialin protocol pppoe pppoe enable pppoe-client dial-pool-number 1 dialer-list 1 protocol ip permit access-list 1 permit 192.168.1.0 255.255.255.0 ip route 0.0.0.0 0.0.0.0 Dialer1 permanent ip nat inside source list 1 interface Dialer1 overload