路由器R1配置: R1#conf t R1(config)#int f0/0 R1(config-if)#ip add 172.16.1.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#exit R1(config)#int f1/0 R1(config-if)#ip add 172.168.2.1 255.
三层交换机配置: SW-R1#vlan database SW-R1(vlan)#vlan 20 name vlan20 SW-R1(vlan)#vlan 30 name vlan30 SW-R1(vlan)#vlan 40 name vlan40 SW-R1(vlan)#exit SW-R1#configure terminal SW-R1(config)# ip
路由器R1配置: R1#configure terminal R1(config)#interface fastethernet 0/0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet 0/0.1 R1(config-subif)#encapsulation dot1Q
公司路由器配置: R1(config)# interface FastEthernet 0/0 R1(config-if)# ip address 10.1.1.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# ip nat outside 启用外网NAT 转换 R1(config-if)# exit R1(conf
NAT 实现方式有以下三种: 静态转换(Static Translation) 动态转换(Dynamic Translation) 端口多路复用(Prot Address Translation , PAT) NAT 相关术语 内部局部 IP地址(Inside Local IP Address):在内部网络中分配给主机的私有IP地址。 内部全局 IP地址(Inside Global I
访问控制列表类型 标准访问控制列表 序号 1-99 扩展访问控制列表 序号 100-199 命名访问控制列表 使用名称代替表号 Router(config)# access-list 1 permit 192.168.1.0 0.0.0.255 允许网段通过 Router(config)# access-list 1 permit 192.168.2.2 0.0.0.0 或 access
R1# 配置: Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#interface loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 
>enable //回话不超时 conf ter line con 0 exec-timeout 0 0 //启用同步显示 line con 0 logging synchronous end //禁用DNS 查询 conf ter no ip domain-lookup //配置vty口令 conf ter line vty 0 4 passwd xiao
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号