hcip 1

HCIP记录第一天

静态路由实验

实验要求:

  1. R6为ISP,接口IP为公有地址,仅配置IP
  2. R1-R5为局域网,私网地址192.168.1.0/24,任意分配,合理即可
  3. 所有路由器的环回均为用户接口
  4. R3下两台PC通过DHCP获取IP地址
  5. 选路最佳,减小路由负担,避免环路
  6. R1-R5均可访问R6环回
  7. R6telnetR5公有地址,实际登录到R1
  8. R4,R5正常通信为1000兆链路,故障时通过100兆链路
    实验涉及技术
    1.静态路由
    2.DHCP
    3.浮动静态路由
    4.NAT
    实验实现拓扑图:
    在这里插入图片描述路由配置:
    192.168.1.0/28
    192.168.1.16/28
    192.168.1.32/28
    192.168.1.48/28
    192.168.1.64/28
    192.168.1.80/28
    192.168.1.96/28
    192.168.1.128/28
    192.168.1.144/28
    192.168.1.160/28
    192.168.1.176/28
    192.168.1.192/28
    192.168.1.208/28
    192.168.1.224/28
    192.168.1.240/28
    R1
    sys
    int co0
    id 2000
    int g 0/0/0
    ip add 192.168.1.1 28
    int g 0/0/1
    ip add 192.168.1.129 28
    int lo0
    ip add 11.1.1.1 24
    q
    ip route-static 192.168.1.33 28 192.168.1.17
    ip route-static 192.168.1.49 28 192.168.1.17
    ip route-static 192.168.1.145 28 192.168.1.17
    ip route-static 192.168.1.161 28 192.168.1.17
    ip route-static 192.168.1.209 28 192.168.1.17
    ip route-static 192.168.1.177 28 192.168.1.17
    ip route-static 1.1.1.1 24 192.168.1.17
    ip route-static 192.168.1.81 28 192.168.1.97
    ip route-static 192.168.1.192 28 192.168.1.97
    ip route-static 192.168.1.65 28 192.168.1.97
    ip route-static 192.168.1.209 28 192.168.1.97
    ip route-static 192.168.1.225 28 192.168.1.97
    ip route-static 2.2.2.2 24 192.168.1.17
    ip route-static 3.3.3.3 24 192.168.1.97
    ip route-static 4.4.4.4 24 192.168.1.17
    ip route-static 5.5.5.5 24 192.168.1.17
    q
    s

R2
sys
int co0
id 2000
int g 0/0/1
ip add 192.168.1.17 28
int g 0/0/0
ip add 192.168.1.33 28
int lo0
ip add 2.2.2.2 24
q
ip route-static 192.168.1.65 28 192.168.1.49
ip route-static 192.168.1.81 28 192.168.1.49
ip route-static 192.168.1.192 28 192.168.1.49
ip route-static 192.168.1.97 28 192.168.1.1
ip route-static 192.168.1.129 28 192.168.1.1
ip route-static 192.168.1.145 28 192.168.1.49
ip route-static 192.168.1.161 28 192.168.1.49
ip route-static 192.168.1.209 28 192.168.1.49
ip route-static 192.168.1.225 28 192.168.1.49
ip route-static 192.168.1.177 28 192.168.1.49
ip route-static 1.1.1.1 24 192.168.1.49
ip route-static 1.11.1.1 24 192.168.1.1
ip route-static 3.3.3.3 24 192.168.1.1
ip route-static 5.5.5.5 24 192.168.1.49
ip route-static 4.4.4.4 24 192.168.1.49
q
s

R3
sys
int co0
id 2000
int g 0/0/0
ip add 192.168.1.97 28
int g 0/0/1
ip add 192.168.1.81 28
int lo0
ip add 3.3.3.3 24
q
dhcp enable
int g 0/0/2
dhcp select interface
dhcp server dns-list 8.8.8.8 8.8.4.4
q
ip route-static 192.168.1.1 28 192.168.1.129
ip route-static 192.168.1.17 28 192.168.1.129
ip route-static 192.168.1.33 28 192.168.1.65
ip route-static 192.168.1.49 28 192.168.1.65
ip route-static 192.168.1.145 28 192.168.1.65
ip route-static 192.168.1.161 28 192.168.1.65
ip route-static 192.168.1.209 28 192.168.1.65
ip route-static 192.168.1.225 28 192.168.1.65
ip route-static 192.168.1.177 28 192.168.1.65
ip route-static 1.1.1.1 24 192.168.1.65
ip route-static 1.1.11.1 24 192.168.1.129
ip route-static 2.2.2.2 24 192.168.1.129
ip route-static 4.4.4.4 24 192.168.1.65
ip route-static 5.5.5.5 24 192.168.1.65
q
s

R4
sys
int co0
id 2000
int g 0/0/0
ip add 192.168.1.65 28
int g 0/0/1
ip add 192.168.1.49 28
int g 4/0/0
ip add 192.168.1.145 28
int g 0/0/2
ip add 192.168.1.209 28
int lo0
ip add 4.4.4.4 24
q
ip route-static 192.168.1.177 28 192.168.1.161 preference 100
ip route-static 192.168.1.177 28 192.168.1.225 preference 50
ip route-static 192.168.1.97 28 192.168.1.81
ip route-static 192.168.1.192 28 192.168.1.81
ip route-static 192.168.1.129 28 192.168.1.81
ip route-static 192.168.1.1 28 192.168.1.33
ip route-static 192.168.1.17 28 192.168.1.33
ip route-static 1.1.1.1 24 192.168.1.65 preference 100
ip route-static 1.1.1.1 24 192.168.1.65 preference 50
ip route-static 2.2.2.2 24 192.168.1.65
ip route-static 3.3.3.3 24 192.168.1.129
ip route-static 1.1.11.1 24 192.168.1.129
ip route-static 5.5.5.5 24 192.168.1.65
q
s

R5
sys
int co0
id 2000
int g 0/0/0
ip add 192.168.1.161 28
int g 0/0/1
ip add 192.168.1.177 28
int g 0/0/2
ip add 192.168.1.225 28
int lo0
ip add 5.5.5.5 24
q
ip route-static 0.0.0.0 0 192.168.145 preference 100
ip route-static 0.0.0.0 0 192.168.209 preference 50
q
s

R6
sys
int co0
id 2000
int g 0/0/1
ip add 6.6.6.6 24
q
s

user-int vty 0 4
authentication-mode password
authentication-mode password cipher 1
telnet 192.168.1.177

©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页