cisco 2821路由器配置

发布于2022-01-12 18:49:20

帮我写一下cisco 2821路由器命令。要求:配置路由器名称,密码,分两个网段 两个网段可以相互访问,开启dhcp。顺便能优化一下。反正就是最基础的配置都能给

1个回答
admin
网友回答2022-01-12
hostname 2821enable password ciscoip dhcp pool cisco10 network 192.168.10.0 255.255.255.0 default-router 192.168.10.254 dns-server 202.96.209.5ip dhcp pool cisco20 network 192.168.20.0 255.255.255.0 default-router 192.168.20.254 dns-server 202.96.209.5interface FastEthernet0/0 description to internet ip address 202.1.1.1 255.255.255.0 ip nat outsideinterface FastEthernet0/1 description to switch ip nat insideinterface FastEthernet0/1.10 encapsulation dot1Q 10 ip address 192.168.10.254 255.255.255.0interface FastEthernet0/1.20 encapsulation dot1Q 20 ip address 192.168.20.254 255.255.255.0ip nat inside source list 1 interface FastEthernet0/1 overloadaccess-list 1 permit 192.168.10.0 0.0.0.255access-list 1 permit 192.168.20.0 0.0.0.255line vty 0 4 password cisco login

回到
顶部