案例1:配置目前網(wǎng)絡(luò)環(huán)境
案例2:項(xiàng)目階段練習(xí)
1 案例1:配置目前網(wǎng)絡(luò)環(huán)境
1.1 問題
溧水網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,溧水網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為溧水成百上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站制作要多少錢,請找那個(gè)售后服務(wù)好的溧水做網(wǎng)站的公司定做!
一家新創(chuàng)建的IT公司,公司位于北京有80多臺服務(wù)器
目前網(wǎng)絡(luò)環(huán)境使用技術(shù),通過端口映射技術(shù)將web服務(wù)器發(fā)布給Internet:
三層交換:匯聚接入層交換機(jī)
默認(rèn)路由:實(shí)現(xiàn)到互聯(lián)網(wǎng)數(shù)以萬計(jì)網(wǎng)絡(luò)訪問的簡化配置
靜態(tài)路由:實(shí)現(xiàn)公司內(nèi)部網(wǎng)絡(luò)互通
NAT端口映射:實(shí)現(xiàn)企業(yè)內(nèi)部Web服務(wù)器的發(fā)布
1.2 方案
通過端口映射技術(shù)將web服務(wù)器發(fā)布給Internet,公司現(xiàn)有網(wǎng)絡(luò)環(huán)境拓?fù)淙鐖D-1所示:
圖-1
現(xiàn)有網(wǎng)絡(luò)連接說明如表-1所示:
表-1 網(wǎng)絡(luò)連接說明
1.3 步驟
實(shí)現(xiàn)此案例需要按照如下步驟進(jìn)行。
步驟一:根據(jù)表-1為設(shè)備配置IP地址,并為三層交換機(jī)開啟路由功能
1)MS1配置vlan1與f0/1接口的IP地址并開啟路由功能
Switch(config)#hostname MS1
MS1(config)#ip routing
MS1(config)#interface vlan 1
MS1(config-if)#ip address 192.168.1.252 255.255.255.0
MS1(config-if)#no shutdown
MS1(config-if)#exit
MS1(config-if)#interface fastEthernet 0/1
MS1(config-if)#no switchport
MS1(config-if)#ip address 192.168.2.1 255.255.255.0
MS1(config-if)#no shutdown
步驟二:為路由器配置IP地址,添加接口模塊
1)為路由器添加接口模塊并進(jìn)入路由器接口配置IP地址
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.2.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip address 61.159.62.129 255.255.255.248
R1(config-if)#no shutdown
步驟三:配置MS1和路由器的靜態(tài)路由
MS1(config-if)#ip route 0.0.0.0 0.0.0.0 192.168.2.2
R1(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
步驟四:測試server1與R1接口IP的連通性
PC>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=0ms TTL=254
Reply from 192.168.2.2: bytes=32 time=0ms TTL=254
Reply from 192.168.2.2: bytes=32 time=0ms TTL=254
Reply from 192.168.2.2: bytes=32 time=1ms TTL=254
Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 61.159.62.129
Pinging 61.159.62.129 with 32 bytes of data:
Reply from 61.159.62.129: bytes=32 time=1ms TTL=254
Reply from 61.159.62.129: bytes=32 time=0ms TTL=254
Reply from 61.159.62.129: bytes=32 time=2ms TTL=254
Reply from 61.159.62.129: bytes=32 time=0ms TTL=254
Ping statistics for 61.159.62.129:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 0ms
步驟五:R1配置端口映射
R1(config)#ip nat inside source static tcp 192.168.1.8 80 61.159.62.131 80
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
R1(config)#interface f1/0
R1(config-if)#ip nat outside
步驟六:在PC7上查看是映射結(jié)果,如圖-2所示
圖-2
2 案例2:項(xiàng)目階段練習(xí)
2.1 問題
現(xiàn)有網(wǎng)絡(luò)問題分析:
接入層交換機(jī)只與同一個(gè)三層交換機(jī)相連,存在單點(diǎn)故障而影響網(wǎng)絡(luò)通信。
互聯(lián)網(wǎng)連接單一服務(wù)商
現(xiàn)有網(wǎng)絡(luò)需求:
隨著企業(yè)發(fā)展,為了保證網(wǎng)絡(luò)的高可用性,需要使用很多的冗余技術(shù)。
保證局域網(wǎng)絡(luò)不會因?yàn)榫€路故障而導(dǎo)致的網(wǎng)絡(luò)故障。
保證客戶端機(jī)器不會因?yàn)槭褂脝我痪W(wǎng)關(guān)而出現(xiàn)的單點(diǎn)失敗。
保證到互聯(lián)網(wǎng)的高可用接入使用冗余互聯(lián)網(wǎng)連接。
提高網(wǎng)絡(luò)鏈路帶寬。
2.2 方案
基于項(xiàng)目的需求,需要用到如下技術(shù):
STP:解決二層環(huán)路帶來的廣播風(fēng)暴并鏈路冗余問題
以太網(wǎng)通道:提高網(wǎng)絡(luò)鏈路帶寬
RIP路由協(xié)議:實(shí)現(xiàn)網(wǎng)絡(luò)路徑的自動學(xué)習(xí)
HSRP:實(shí)現(xiàn)網(wǎng)關(guān)冗余
重新規(guī)劃后的網(wǎng)絡(luò)拓?fù)淙鐖D-3:
圖-3
重新規(guī)劃后網(wǎng)絡(luò)連接說明如表-2與表-3所示:
表-2 網(wǎng)絡(luò)連接說明
表-3 網(wǎng)絡(luò)連接說明(續(xù))
2.3 步驟
實(shí)現(xiàn)此案例需要按照如下步驟進(jìn)行。
步驟一:靜態(tài)路由升級動態(tài)路由。
1)R1刪除靜態(tài)路由并配置rip
R1(config)#no ip route 192.168.1.0 255.255.255.0 192.168.2.1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.2.0
R1(config-router)#default-information originate
2)MS1上刪除靜態(tài)路由并配置rip
MS1(config)#no ip route 0.0.0.0 0.0.0.0 192.168.2.2
MS1(config)#router rip
MS1(config-router)#version 2
MS1(config-router)#no auto-summary
MS1(config-router)#network 192.168.1.0
MS1(config-router)#network 192.168.2.0
3)在MS1上查看路由表
MS1#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 192.168.2.2 to network 0.0.0.0
C 192.168.1.0/24 is directly connected, Vlan1
C 192.168.2.0/24 is directly connected, FastEthernet0/1
R* 0.0.0.0/0 [120/1] via 192.168.2.2, 00:00:01, FastEthernet0/1
步驟二:配置SW1、SW2、SW3、SW4與MS1的接口為Trunk模式并做以太網(wǎng)通道。
1)SW1、SW2、SW3、SW4上做與MS1之間的trunk與以太網(wǎng)通道
Switch(config)#hostname SW1
SW1(config)#interface range fastEthernet 0/5-6
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#channel-group 1 mode on
Switch(config)#hostname SW2
SW2(config)#interface range fastEthernet 0/7-8
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#channel-group 2 mode on
Switch(config)#hostname SW3
SW3(config)#interface range fastEthernet 0/9-10
SW3(config-if-range)#switchport mode trunk
SW3(config-if-range)#channel-group 3 mode on
Switch(config)#hostname SW4
SW4(config)#interface range fastEthernet 0/11-12
SW4(config-if-range)#switchport mode trunk
SW4(config-if-range)#channel-group 4 mode on
2)MS1與SW1、SW2、SW3、SW4之間做以太網(wǎng)通道并啟用trunk
MS1(config)#interface range fastEthernet 0/5-6
MS1(config-if-range)#switchport trunk encapsulation dot1q
MS1(config-if-range)#switchport mode trunk
MS1(config-if-range)#channel-group 1 mode on
MS1(config-if-range)#exit
MS1(config-if-range)#interface range fastEthernet 0/7-8
MS1(config-if-range)#switchport trunk encapsulation dot1q
MS1(config-if-range)#channel-group 2 mode on
MS1(config-if-range)#switchport mode trunk
MS1(config-if-range)#exit
MS1(config-if-range)#interface range fastEthernet 0/9-10
MS1(config-if-range)#switchport trunk encapsulation dot1q
MS1(config-if-range)#switchport mode trunk
MS1(config-if-range)#channel-group 3 mode on
MS1(config-if-range)#exit
MS1(config-if-range)#interface range fastEthernet 0/11-12
MS1(config-if-range)#switchport trunk encapsulation dot1q
MS1(config-if-range)#switchport mode trunk on
MS1(config-if-range)#channel-group 4 mode on
步驟三:添加MS2并配置與MS1、SW1、SW2、SW3、SW4之間的太網(wǎng)通道。
1)在MS1上配置與MS2的以太網(wǎng)通道
MS1(config)#interface range fastEthernet 0/13-15
MS1(config-if-range)#channel-group 5 mode on
MS1(config-if-range)#switchport trunk encapsulation dot1q
MS1(config-if-range)#switchport mode trunk
2)在MS2并配置與MS1、SW1、SW2、SW3、SW4之間的太網(wǎng)通道
MS2(config)#interface range fastEthernet 0/10-12
MS2(config-if-range)#channel-group 5 mode on
MS2(config-if-range)#switchport trunk encapsulation dot1q
MS2(config-if-range)#switchport mode trunk
MS2(config-if-range)#exit
MS2(config)#interface range fastEthernet 0/2-3
MS2(config-if-range)#channel-group 1 mode on
MS2(config-if-range)#switchport trunk encapsulation dot1q
MS2(config-if-range)#switchport mode trunk
MS2(config-if-range)#exit
MS2(config)#interface range fastEthernet 0/4-5
MS2(config-if-range)#channel-group 2 mode on
MS2(config-if-range)#switchport mode trunk
MS2(config-if-range)#exit
MS2(config)#interface range fastEthernet 0/6-7
MS2(config-if-range)#channel-group 3 mode on
MS2(config-if-range)#switchport trunk encapsulation dot1q
MS2(config-if-range)#switchport mode trunk
MS2(config-if-range)#exit
MS2(config)#interface range fastEthernet 0/8-9
MS2(config-if-range)#channel-group 4 mode on
MS2(config-if-range)#switchport trunk encapsulation dot1q
MS2(config-if-range)#switchport mode trunk
3)在MS1上查看以太網(wǎng)通道
MS1>show etherchannel port-channel
Channel-group listing:
----------------------
Group: 1
----------
Port-channels in the group:
---------------------------
Port-channel: Po1
------------
Age of the Port-channel = 00d:00h:05m:21s
Logical slot/port = 2/1 Number of ports = 2
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/5 On 0
0 00 Fa0/6 On 0
Time since last port bundled: 00d:00h:05m:21s Fa0/6
Group: 2
----------
Port-channels in the group:
---------------------------
Port-channel: Po2
------------
Age of the Port-channel = 00d:00h:05m:21s
Logical slot/port = 2/2 Number of ports = 2
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/7 On 0
0 00 Fa0/8 On 0
Time since last port bundled: 00d:00h:05m:21s Fa0/8
Group: 3
----------
Port-channels in the group:
---------------------------
Port-channel: Po3
------------
Age of the Port-channel = 00d:00h:05m:21s
Logical slot/port = 2/3 Number of ports = 2
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/9 On 0
0 00 Fa0/10 On 0
Time since last port bundled: 00d:00h:05m:21s Fa0/10
Group: 4
----------
Port-channels in the group:
---------------------------
Port-channel: Po4
------------
Age of the Port-channel = 00d:00h:05m:21s
Logical slot/port = 2/4 Number of ports = 2
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/11 On 0
0 00 Fa0/12 On 0
Time since last port bundled: 00d:00h:05m:21s Fa0/12
Group: 5
----------
Port-channels in the group:
---------------------------
Port-channel: Po5
------------
Age of the Port-channel = 00d:00h:08m:11s
Logical slot/port = 2/5 Number of ports = 3
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/13 On 0
0 00 Fa0/14 On 0
0 00 Fa0/15 On 0
Time since last port bundled: 00d:00h:08m:11s Fa0/15
步驟四:MS1與MS2配置STP
1)在MS1和MS2上配置stp
MS1(config)#spanning-tree vlan 1 root primary
MS2(config)#spanning-tree vlan 1 root secondary
2)在MS1和MS2上查看stp
MS1# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0004.9A70.6B06
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24577 (priority 24576 sys-id-ext 1)
Address 0004.9A70.6B06
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Po1 Desg FWD 9 128.27 Shr
Po2 Desg FWD 9 128.28 Shr
Po3 Desg FWD 9 128.29 Shr
Po4 Desg FWD 9 128.30 Shr
Po5 Desg FWD 8 128.31 Shr
MS2#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0004.9A70.6B06
Cost 8
Port 31(Port-channel 5)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 28673 (priority 28672 sys-id-ext 1)
Address 0006.2A05.A2BA
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Po1 Desg FWD 9 128.27 Shr
Po2 Desg FWD 9 128.28 Shr
Po3 Desg FWD 9 128.29 Shr
Po4 Desg FWD 9 128.30 Shr
Po5 Root FWD 8 128.31 Shr
步驟五:HSRP配置
1)MS1配置HSRP
MS1(config)#interface vlan 1
MS1(config-if)#standby 1 ip 192.168.1.254
MS1(config-if)#standby 1 priority 200
MS1(config-if)#standby 1 preempt
2)MS2配置HSRP開啟路由功能
MS2(config)#ip routing
MS2(config)#interface vlan 1
MS2(config)#ip address 192.168.1.253 255.255.255.0
MS2(config)#no shutdown
MS2(config-if)#standby 1 ip 192.168.1.254
MS2(config-if)#standby 1 priority 195
MS2(config-if)#standby 1 preempt
3)配置MS1交換機(jī)的HSRP的端口跟蹤,關(guān)閉跟蹤接口,并在MS1和MS2上查看HSRP狀態(tài)
MS1(config)# MS1(config)#interface vlan 1
MS1(config-if)#standby 1 track fastEthernet 0/1
MS1(config-if)#exit
MS1(config)#interface fastEthernet 0/1
MS1(config-if)#shutdown
MS1#show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl1 1 190 P Standby 192.168.1.253 local 192.168.1.254
MS2#show standby brief
P indicates configured to preempt.
Interface Grp Pri P State Active Standby Virtual IP
Vl1 1 195 P Active local 192.168.1.252 192.168.1.254
步驟六:MS2連接R1并配置rip
1)為R1與MS2相連接的接口配置IP地址 并配置rip
R1(config)#interface fastEthernet 0/24
R1(config-if)#ip address 192.168.3.2 255.255.255.0
R1(config-if)#exit
R1(config)#router rip
R1(config-router)# version 2
R1(config-router)#network 192.168.3.0
MS2(config-if)#exit
MS2(config)#router rip
MS2(config-router)#version 2
MS2(config-router)#no auto-summary
MS2(config-router)#network 192.168.1.0
步驟七:添加路由器R2, 為R2配置默認(rèn)路由,R2與MS1、MS2、Internet相連并為配置IP與動態(tài)路由
1)配置R2的IP地址、rip、默認(rèn)路由。
Router(config)hostname R2
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.4.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 0/1
R2(config-if)#ip address 192.168.5.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ip address 61.159.62.130 255.255.255.248
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)ip route 0.0.0.0 0.0.0.0 fastEthernet 1/0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.4.0
R2(config-router)#network 192.168.5.0
R2(config-router)#default-information originate
2)MS2配置IP地址添加動態(tài)路由條目
MS2(config)#interface fastEthernet 0/1
MS2(config-if)#no switchport
MS2(config-if)#ip address 192.168.4.1 255.255.255.0
MS2(config-if)#no shutdown
MS2(config-if)#exit
MS2(config)#router rip
R2(config-router)#version 2
MS2(config-router)#network 192.168.4.0
3)MS1配置IP地址添加動態(tài)路由條目
MS1(config)#interface fastEthernet 0/24
MS1(config-if)#no switchport
MS1(config-if)#ip address 192.168.5.1 255.255.255.0
MS1(config-if)#no shutdown
MS1(config-if)#exit
MS1(config)#router rip
R2(config-router)#version 2
MS1(config-router)#network 192.168.5.0
4)在客戶端測試網(wǎng)絡(luò)的聯(lián)通性
SERVER>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::201:96FF:FEA8:404B
IP Address......................: 192.168.1.1
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.254
SERVER>ping 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Reply from 192.168.2.1: bytes=32 time=0ms TTL=255
Reply from 192.168.2.1: bytes=32 time=0ms TTL=255
Reply from 192.168.2.1: bytes=32 time=0ms TTL=255
Reply from 192.168.2.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.2.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
SERVER>ping 192.168.3.1
Pinging 192.168.3.1 with 32 bytes of data:
Reply from 192.168.3.1: bytes=32 time=0ms TTL=255
Reply from 192.168.3.1: bytes=32 time=0ms TTL=255
Reply from 192.168.3.1: bytes=32 time=0ms TTL=255
Reply from 192.168.3.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.3.1:
Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
SERVER>ping 192.168.4.1
Pinging 192.168.4.1 with 32 bytes of data:
Reply from 192.168.4.1: bytes=32 time=1ms TTL=255
Reply from 192.168.4.1: bytes=32 time=0ms TTL=255
Reply from 192.168.4.1: bytes=32 time=0ms TTL=255
Reply from 192.168.4.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.4.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
SERVER>ping 192.168.5.1
Pinging 192.168.5.1 with 32 bytes of data:
Reply from 192.168.5.1: bytes=32 time=1ms TTL=255
Reply from 192.168.5.1: bytes=32 time=1ms TTL=255
Reply from 192.168.5.1: bytes=32 time=1ms TTL=255
Reply from 192.168.5.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.5.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
SERVER>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=1ms TTL=254
Reply from 192.168.2.2: bytes=32 time=1ms TTL=254
Reply from 192.168.2.2: bytes=32 time=11ms TTL=254
Reply from 192.168.2.2: bytes=32 time=0ms TTL=254
Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 11ms, Average = 3ms
SERVER>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:
Reply from 192.168.3.2: bytes=32 time=0ms TTL=254
Reply from 192.168.3.2: bytes=32 time=0ms TTL=254
Reply from 192.168.3.2: bytes=32 time=1ms TTL=254
Reply from 192.168.3.2: bytes=32 time=0ms TTL=254
Ping statistics for 192.168.3.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
5)關(guān)閉MS1
MS1(config)#interface range fastEthernet 0/1-24
MS1(config-if-range)#shutdown
6)在外網(wǎng)測試是否可以訪問web服務(wù)器如圖-4所示
圖-4
步驟八:在R2上配置端口映射
1)在R2上配置端口映射,指定NAT進(jìn)口
R2(config)#ip nat inside source static tcp 192.168.1.8 80 61.159.62.131 80
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#interface fastEthernet 0/1
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ip nat outside
2)關(guān)閉R1(如圖-5所示)測試外網(wǎng)是否可以正常訪問web服務(wù)器(因?yàn)槟M器有BUG所以需要填加一臺Internet主機(jī)IP:61.159.62.133測試如圖-6所示)
圖-5
圖-6
可以訪問web服務(wù)器證明項(xiàng)目升級成功。
分享文章:詳細(xì)配置公司內(nèi)部網(wǎng)絡(luò)環(huán)境步驟
URL鏈接:http://jinyejixie.com/article10/gdjsgo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、關(guān)鍵詞優(yōu)化、網(wǎng)站導(dǎo)航、網(wǎng)站策劃、軟件開發(fā)、手機(jī)網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)