Cisco net动态地址池转换

2025-05-06 04:55:59

1、建立网络拓扑图

Cisco net动态地址池转换

3、对交换机S0、S1进行相同配置Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#vlan 20Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#switch access vlan 10Switch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#switch access vlan 20Switch(config-if)#exitSwitch(config)#int f0/24Switch(config-if)#switch mode tSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to upSwitch(config-if)#

Cisco net动态地址池转换Cisco net动态地址池转换Cisco net动态地址池转换

7、对于服务器进行配置

Cisco net动态地址池转换

8、对交换机进行配置Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 40Switch(config-vlan)#exitSwitch(config)#vlan 50Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#switch access vlan 40Switch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#switch access vlan 50Switch(config)#int f0/24Switch(config-if)#switch mode t

9、对路由器进行配置Router>enRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/1Router(config-if)#no ip addressRouter(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#exitRouter(config)#int f0/1.10Router(config-subif)#%LINK-5-CHANGED: Interface FastEthernet0/1.10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.10, changed state to upRouter(config-subif)#encRouter(config-subif)#encapsulation dot1q 40Router(config-subif)#ip address 192.168.6.1 255.255.255.0% Configuring IP routing on a LAN subinterface is only allowed if thatsubinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,or ISL vLAN.Router(config-subif)#exitRouter(config)#int f0/1.20Router(config-subif)#%LINK-5-CHANGED: Interface FastEthernet0/1.20, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.20, changed state to upRouter(config-subif)#encapsulation dot1q 50Router(config-subif)#ip address 192.168.7.1 255.255.255.0% Configuring IP routing on a LAN subinterface is only allowed if thatsubinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,or ISL vLAN.Router(config-subif)#exitRouter(config-subif)#endRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#Router>enRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/1Router(config-if)#no ip addressRouter(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#exitRouter(config)#int f0/1.10Router(config-subif)#%LINK-5-CHANGED: Interface FastEthernet0/1.10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.10, changed state to upRouter(config-subif)#ip address 192.168.6.1 255.255.255.0% Configuring IP routing on a LAN subinterface is only allowed if thatsubinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,or ISL vLAN.Router(config-subif)#encRouter(config-subif)#encapsulation dot1q 40Router(config-subif)#exitRouter(config)#int f0/1.20Router(config-subif)#%LINK-5-CHANGED: Interface FastEthernet0/1.20, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.20, changed state to upRouter(config-subif)#ip address 192.168.7.1 255.255.255.0% Configuring IP routing on a LAN subinterface is only allowed if thatsubinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,or ISL vLAN.Router(config-subif)#encapsulation dot1q 50Router(config-subif)#exitRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip address 192.168.5.2 255.255.255.0Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#ip route 192.168.1.0 255.255.255.0 192.168.5.1Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.5.1Router(config)#ip route 192.168.3.0 255.255.255.0 192.168.5.1Router(config)#ip route 192.168.4.0 255.255.255.0 192.168.5.1Router(config)#ip route 192.168.8.0 255.255.255.0 192.168.5.1Router(config)#ip route 192.168.9.0 255.255.255.0 192.168.5.1以上路由表可用默认路由代替Router(config)#ip route 0.0.0.0 0.0.0.0 f0/0 {192.168.5.1 }Router(config)#endRouter#Router>Router>enRouter#Router#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#access-list 101 permit tcp 192.168.1.0 0.0.0.255 host 192.168.6.10 eq wwwRouter(config)#access-list 101 permit tcp 192.168.1.0 0.0.0.255 host 192.168.7.10 eq wwwRouter(config)#access-list 101 deny ip 192.168.1.0 0.0.0.255 host 192.168.6.10Router(config)#access-list 101 deny ip 192.168.1.0 0.0.0.255 host 192.168.7.10Router(config)#access-list 101 permit tcp 192.168.2.0 0.0.0.255 host 192.168.7.10 eq wwwRouter(config)#access-list 101 deny tcp 192.168.2.0 0.0.0.255 host 192.168.6.10 eq wwwRouter(config)#access-list 101 deny ip 192.168.2.0 0.0.0.255 host 192.168.7.10Router(config)#access-list 101 deny ip 192.168.2.0 0.0.0.255 host 192.168.6.10Router(config)#int f0/0Router(config-if)#ip access-group 101 inRouter(config-if)#exit

Cisco net动态地址池转换Cisco net动态地址池转换Cisco net动态地址池转换Cisco net动态地址池转换Cisco net动态地址池转换

13、对最上面一台路由器Router>enRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip address 192.168.8.200 255.255.255.0Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#ip address 192.168.9.1 255.255.255.0Router(config-if)#no shutRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#exitRouter(config)#ip route 0.0.0.0 0.0.0.0 f0/0Router(config)#

Cisco net动态地址池转换Cisco net动态地址池转换Cisco net动态地址池转换
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢