<R3>reset saved-configuration 输入命令后会称劣出现: Are you sure? (y/n)[n]: 这时输入y <R3>reboot 输入命令后会出现: Info: The system is comparing the configuration, please wait. Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]: 这时输入n 系统会继续提示: System will reboot! Continue ? [y/n]: 这时惹宋独输入y,重启
ip route-static 192.168.3.0 255.255.255.0 192.168.2.10
下一跳——回R2
1
ip route-static 192.168.1.0 255.255.255.0 192.168.2.1
10-TCP和UDP
Tcp:可靠性高。 适合对文件传输的完整性要求高,但是对延迟不敏感 电子邮件
更新客户端 Udp:速度快
11-划分vlan
1 2 3 4 5
vlan 10 int g0/0/1 port link-type access port default vlan 10 display vlan
12-Trunk模式
注:交换机根据trunk接口打标签来回包
1 2
port link-type trunk port trunk allow-pass vlan all
13-三层交换
注:
用三层交换技术,先用vlan把用户隔离开,再用某种技术,把隔离开用户连起来
隔离:隔离是故障
连通︰是正常通信
用三层配置vlan的ip作为网关
1 2
int vlan 20 ip add 2.2.2.254 255.255.255.0
14-单臂路由
注:用路由器接口分两个子接口配置网关
1 2 3 4
[Huawei]int g0/0/0.10 dot1q termination vid 10 ip address 1.1.1.254 255.255.255.0 arp broadcast enable
15-ACL访问列表控制
1 2 3 4 5 6 7
[Huawei]acl name text [Huawei-acl-adv-text]rule deny ip source 192.168.10.0 0.0.0.255 destination 192. 168.30.0 0.0.0.255 [Huawei-acl-adv-text]rule permit ip source any destination any [Huawei-acl-adv-text]q [Huawei]in g0/0/1 [Huawei-GigabitEthernet0/0/1]traffic-filter inbound acl name text
16-NAT网络地址转换
1 2 3 4 5
[Huawei]acl name neiwang basic [Huawei-acl-basic-neiwang]rule permit source 192.168.0.0 0.0.255.255
[Huawei]nat address-group 1 64.1.1.2 64.1.1.5 [Huawei]dis acl all