如何构建公司企业局域网
发布网友
发布时间:2022-09-01 12:46
我来回答
共3个回答
热心网友
时间:2024-11-23 10:51
你好,我是网络092的许梦潇
拿到答案了麻烦发一份至cenhuanen@163.com
不胜感激,并诚邀春晖二楼韩国济州岛烧烤一餐。
电话:560609
热心网友
时间:2024-11-23 10:51
SWB
DCRS-5650-28>ena
DCRS-5650-28#con
DCRS-5650-28(config)#hostname SWB
SWB(config)#vlan 20
SWB(Config-Vlan20)#switchport int e0/0/1-16
Set the port Ethernet0/0/1 access vlan 20 successfully
……
Set the port Ethernet0/0/16 access vlan 20 successfully
SWB(Config-Vlan20)#int vlan 20
SWB(Config-if-Vlan20)#ip add 192.168.20.1 255.255.255.0
SWB(Config-if-Vlan20)#exit
SWB(config)#int vlan 1
SWB(Config-if-Vlan1)#ip address 192.168.70.2 255.255.255.0
SWB(Config-if-Vlan1)#exit
SWB(config)#ip route 192.168.10.0/24 192.168.67.1
SWB(config)#ip route 192.168.17.0/24 192.168.67.1
SWB(config)#ip route 192.168.67.0/24 192.168.67.1
SWB#show run
no service password-encryption
hostname SWB
vlan 1
vlan 20
Interface Ethernet0/0/1
switchport access vlan 20
……
Interface Ethernet0/0/16
switchport access vlan 20
Interface Ethernet0/0/17
……
Interface Ethernet0/0/28
interface Vlan1
ip address 192.168.70.2 255.255.255.0
interface Vlan20
ip address 192.168.20.1 255.255.255.0
ip route 192.168.10.0/24 192.168.67.1
ip route 192.168.66.0/24 192.168.67.1
ip route 192.168.67.0/24 192.168.67.1
no login
End
SWB#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
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
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
C 127.0.0.0/8 is directly connected, Loopback
C 192.168.20.0/24 is directly connected, Vlan20
C 192.168.70.0/24 is directly connected, Vlan1
SWA
DCRS-5650-28>ena
DCRS-5650-28#con
DCRS-5650-28(config)#hostname SWB
SWA(config)#vlan 10
SWA(Config-Vlan10)#switchport int e0/0/1-14
Set the port Ethernet0/0/1 access vlan 10 successfully
……
Set the port Ethernet0/0/14access vlan10 successfully
SWA(Config-Vlan10)#int vlan 10
SWA(Config-if-Vlan10)#ip add 192.168.10.1 255.255.255.0
SWA(Config-if-Vlan10)#exit
SWA(config)#int vlan 1
SWA(Config-if-Vlan1)#ip address 192.168.67.2 255.255.255.0
SWA(Config-if-Vlan1)#exit
SWA(config)#
SWA(config)#ip route 192.168.10.0/24 192.168.70.1
SWA(config)#ip route 192.168.17.0/24 192.168.70.1
SWA(config)#ip route 192.168.67.0/24 192.168.70.1
SWA(config)#show run
no service password-encryption
hostname SWA
vlan 1
vlan 10
Interface Ethernet0/0/1
switchport access vlan 10
……
switchport access vlan 10
Interface Ethernet0/0/14
switchport access vlan 10
Interface Ethernet0/0/15
……
Interface Ethernet0/0/28
interface Vlan1
ip address 192.168.67.2 255.255.255.0
interface Vlan10
ip address 192.168.10.1 255.255.255.0
ip route 192.168.20.0/24 192.168.70.1
ip route 192.168.17.0/24 192.168.70.1
ip route 192.168.70.0/24 192.168.70.1
no login
End
SWA(config)#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
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
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
C 127.0.0.0/8 is directly connected, Loopback
C 192.168.10.0/24 is directly connected, Vlan10
RB
RB>enable
RB#config
RB_config#int f0/3
RB_config_f0/3#ip address 192.168.70.1 255.255.255.0
RB_config_f0/3#exit
RB_config#int f0/0
RBconfig_f0/0#ip address 192.168.67.1 255.255.255.0
RB_config_f0/0#int s0/1
RB_config_s0/1#physical-layer speed 64000
RB_config_s0/1#ip add 192.168.17.200 255.255.255.0
RB_config_s0/1#exit
RB_config#ip route 192.168.10.0 255.255.255.0 192.168.67.2
RB_config#ip route 192.168.20.0 255.255.255.0 192.168.70.2
RB_config#show run
!version 1.3.3F
service timestamps log date
service timestamps debug date
no service password-encryption
gbsc group default
interface FastEthernet0/0
ip address 192.168.67.1 255.255.255.0
no ip directed-broadcast
interface FastEthernet0/3
ip address 192.168.70.1 255.255.255.0
no ip directed-broadcast
interface Serial0/1
ip address 192.168.17.200 255.255.255.0
no ip directed-broadcast
physical-layer speed 64000
interface Serial0/2
no ip address
no ip directed-broadcast
interface Async0/0
no ip address
no ip directed-broadcast
RB_config#
RB_config#ip access-list extended 190
RB_config_ext_nacl#exit
RB_config#ip access-list extended 192
RB_config_ext_nacl#1 255.255.255.0 192.168.70.1 255.255.255.0 eq 21
RB_config_ext_nacl#permit ip any any
RB_config_ext_nacl#int f0/0
RB_config_f0/0#ip access-group 192 in
RB_config_f0/0#exit
RB_config#ip access-list extended 193
RB_config_ext_nacl#deny tcp any eq 80 218.18.95.153 255.255.255.0 eq www
RB_config_ext_nacl#deny tcp any eq 80 218.17.209.23 255.255.255.0 eq www
RB_config_ext_nacl#ny eq 8000 61.144.238.145 255.255.255.0 eq 8000
RB_config_ext_nacl#ny eq 8000 202.104.129.254 255.255.255.0 eq 8000
RB_config_ext_nacl#permit ip any any
RB_config_ext_nacl#exit
RB_config#int s0/1
RB_config_s0/1#ip access-group 193 out
RB_config_s0/1#exit
RB_config#int f0/0
RB_config_f0/0#ip nat inside
RB_config_f0/0#exit
RB_config#int f0/3
RB_config_f0/3#ip nat inside
RB_config_f0/3#exit
RB_config#int s0/1
RB_config_s0/1#ip nat outside
RB_config_s0/1#exit
RB_config#ip nat pool wl 192.168.17.200 192.168.17.202 255.255.255.0
RB_config#eixt
RB#show run
Building configuration...
!version 1.3.3F
service timestamps log date
service timestamps debug date
no service password-encryption!
gbsc group default
interface FastEthernet0/0
ip address 192.168.67.1 255.255.255.0
no ip directed-broadcast
ip access-group 192 in
ip nat inside
interface FastEthernet0/3
ip address 192.168.70.1 255.255.255.0
no ip directed-broadcast
ip nat inside!
interface Serial0/1
ip address 192.168.17.200 255.255.255.0
no ip directed-broadcast
ip access-group 193 out
physical-layer speed 64000
ip nat outside!
interface Serial0/2
no ip address
no ip directed-broadcast!
interface Async0/0
no ip address
no ip directed-broadcast!
ip route 192.168.10.0 255.255.255.0 192.168.67.2
ip route 192.168.20.0 255.255.255.0 192.168.70.2!
ip access-list extended 190
ip access-list extended 192
deny tcp 192.168.67.1 255.255.255.0 192.168.70.1 255.255.255.0 eq ftp
permit ip any any!
ip access-list extended 193
deny tcp any eq www 218.18.95.153 255.255.255.0 eq www
deny tcp any eq www 218.17.209.23 255.255.255.0 eq www
deny udp any eq 8000 61.144.238.145 255.255.255.0 eq 8000
deny udp any eq 8000 202.104.129.254 255.255.255.0 eq 8000
permit ip any any!
ip nat pool wl 192.168.17.200 192.168.17.202 255.255.255.0!
RB#show ip route
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area
ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
OE1 - OSPF external type 1, OE2 - OSPF external type 2
DHCP - DHCP type
VRF ID: 0
S 192.168.20.0/24 [1,0] via 192.168.70.2(on FastEthernet0/3)
C 192.168.70.0/24 is directly connected, FastEthernet0/3
RA
Router>enable
Router#con
Router_config#hostname RA
RA_config#int s0/1
RA_config_s0/1#ip add 192.168.17.201 255.255.255.0
RA_config_s0/1#show run
Building configuration...
Current configuration:
!version 1.3.3F
service timestamps log date
service timestamps debug date
no service password-encryption
hostname RA
gbsc group default
interface FastEthernet0/0
no ip address
no ip directed-broadcast
interface FastEthernet0/3
no ip address
no ip directed-broadcast
interface Serial0/1
ip address 192.168.17.201 255.255.255.0
no ip directed-broadcast
interface Serial0/2
no ip address
no ip directed-broadcast
interface Async0/0
no ip address
no ip directed-broadcast
热心网友
时间:2024-11-23 10:52
你可以在百度上搜索 “SEMTIME” 了解