2301_81758153 2023-12-08 18:07 采纳率: 0%
浏览 4
已结题

h3c静态路要求有详细过程

1、R1:核心路由器,负责该企业的内部与外部通信以及内部跨vlan通信,并承担DHCP服

2、SW2:汇聚交换机,负责集中各个部门的网络流量
3、SW3:开发部接入交换机,负责接入开发部PC
4、SW4:销售部接入交换机,负责接入销售部PC
5、SW5:经理室接入交换机,负责接入总经理PC
6、Web Server(PC):公司网站服务器,负责运行公司网站业务 注:可以多个子网

img

  • 写回答

5条回答 默认 最新

  • 专家-赤兔[在线] 优质创作者: 编程框架技术领域 2023-12-08 18:07
    关注

    引自强大而免费的微信小程序:皆我百晓生

    以下是h3c静态路由的详细过程:

    1、给三个分部划分VLAN用于隔离部门:
    首先,在SW2上创建三个VLAN:
    SW2(config)# vlan 10
    SW2(config)# vlan 20
    SW2(config)# vlan 30

    然后,将相应的端口添加到对应的VLAN中:
    SW2(config)# interface GigabitEthernet 1/0/1
    SW2(config-if)# port link-type access
    SW2(config-if)# port default vlan 10

    SW2(config)# interface GigabitEthernet 1/0/2
    SW2(config-if)# port link-type access
    SW2(config-if)# port default vlan 20

    SW2(config)# interface GigabitEthernet 1/0/3
    SW2(config-if)# port link-type access
    SW2(config-if)# port default vlan 30

    2、配置开发部和经理室的PC静态IP:
    在SW3和SW5上分别对开发部和经理室的PC端口配置静态IP地址:
    SW3(config)# interface GigabitEthernet 1/0/1
    SW3(config-if)# ip address 192.168.1.10 255.255.255.0

    SW5(config)# interface GigabitEthernet 1/0/1
    SW5(config-if)# ip address 192.168.2.10 255.255.255.0

    3、配置销售部的PC地址为DHCP分配:
    在SW4上为销售部的PC端口配置DHCP服务:
    SW4(config)# interface GigabitEthernet 1/0/1
    SW4(config-if)# dhcp enable

    4、配置Web Server访问限制:
    在R1上配置访问控制列表(ACL)来限制Web Server的访问:
    R1(config)# acl number 1
    R1(config-acl-basic)# rule permit source 192.168.1.0 0.0.0.255
    R1(config-acl-basic)# rule permit source 192.168.2.0 0.0.0.255
    R1(config-acl-basic)# rule permit source 192.168.3.0 0.0.0.255
    R1(config-acl-basic)# rule deny

    然后,在R1的接口上应用ACL:
    R1(config)# interface GigabitEthernet 0/0/0
    R1(config-if)# ip address 10.0.0.1 255.255.255.0
    R1(config-if)# traffic-filter inbound acl number 1

    5、配置链路聚合:
    在R1和SW1之间配置链路聚合,以提供更大的带宽:
    R1(config)# interface GigabitEthernet 0/1/0
    R1(config-if)# port link-aggregation group 1

    R1(config)# interface GigabitEthernet 0/2/0
    R1(config-if)# port link-aggregation group 1

    SW1(config)# interface GigabitEthernet 1/0/1
    SW1(config-if)# port link-type trunk
    SW1(config-if)# port trunk allow-pass vlan 10 to 30
    SW1(config-if)# port link-aggregation group 1

    SW1(config)# interface GigabitEthernet 1/0/2
    SW1(config-if)# port link-type trunk
    SW1(config-if)# port trunk allow-pass vlan 10 to 30
    SW1(config-if)# port link-aggregation group 1

    SW1(config)# interface GigabitEthernet 1/0/3
    SW1(config-if)# port link-type access
    SW1(config-if)# port default vlan 1
    SW1(config-if)# port link-aggregation group 1

    6、配置经理室与销售部通信时流量优先选择SW5至SW4:
    在SW4和SW5之间配置交换机间的直连线路,并启用STP协议来防止环路:
    SW4(config)# interface GigabitEthernet 1/0/2
    SW4(config-if)# stp edged-port enable

    SW5(config)# interface GigabitEthernet 1/0/2
    SW5(config-if)# stp edged-port enable

    然后,配置STP优先级使得SW5成为根交换机:
    SW5(config)# stp priority 0

    最后,为经理室和销售部的PC配置默认网关为SW5的接口IP:
    SW5(config)# interface Vlan-interface 1
    SW5(config-if)# ip address 192.168.2.1 255.255.255.0
    SW5(config-if)# dhcp select relay
    SW5(config-if)# dhcp relay server-address 10.0.0.100

    SW4(config)# interface Vlan-interface 1
    SW4(config-if)# ip address 192.168.3.1 255.255.255.0
    SW4(config-if)# dhcp select relay
    SW4(config-if)# dhcp relay server-address 10.0.0.100

    评论 编辑记录

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 12月9日
  • 创建了问题 12月8日