• 实践是成为网工最快的方法,网络工程师实战项目整理


    静态IP分配的主机地址请自行配置

    参考命令

    实验目标:
    1、为AR1的G0/0/0接口配置ip地址,地址为192.168.1.1,掩码为255.255.255.0
    2、AR1开启DHCP服务,并且在G0/0/0接口开启DHCP功能,地址池选择接口模式
    3、将两台PC配置为自动获取IP地址,然后通过ping命令测试二者连通性

    AR1 :

    dhcp enable

    interface GigabitEthernet0/0/0

    dhcp select interface

    通过ipconfig看是否获取IP地址

    DNS

    实验目标:
    1、按图示配置各设备的IP地址
    2、DNS服务器已预配,包含域名www.baidu.com的IP信息,对应地址为192.168.1.200
    3、添加所需的配置,实现PC1可以通过域名ping通PC2,并且DHCP服务器排除192.168.1.100和192.168.1.200两个特殊地址

    AR1:ip add 192.168.1.1 24

    dhcp enable

    interface GigabitEthernet0/0/0

    dhcp select interface

    dhcp server dns-list 192.168.1.100

    dhcp server excluded-ip-address 192.168.1.100

    dhcp server excluded-ip-address 192.168.1.200

    静态路由

    要求:

    1.请根据图中所示配置主机以及路由器接口IP地址
    2.配置正确的静态路由,实现PC机可以ping通server

    AR1:ip route-static 192.168.3.0 24 192.168.2.2

    ip route-static 192.168.4.0 24 192.168.2.2

    AR2

    ip route-static 192.168.1.0 255.255.255.0 192.168.2.1

    ip route-static 192.168.4.0 255.255.255.0 192.168.3.2

    AR3

    ip route-static 192.168.1.0 255.255.255.0 192.168.3.1

    ip route-static 192.168.2.0 255.255.255.0 192.168.3.1

    VLAN

    1. 如图,各节点ip地址已预配,且可以互相通信
      2、通过vlan配置,实现pc1可以和pc2、pc5通信pc1不能和pc3、pc4通信

    Vlan 10

    Vlan 20

    interface GigabitEthernet0/0/1

    port link-type access

    port default vlan 10

    interface GigabitEthernet0/0/2

    port link-type access

    port default vlan 10

    interface GigabitEthernet0/0/3

    port link-type access

    port default vlan 20

    interface GigabitEthernet0/0/4

    port link-type trunk

    port trunk allow-pass vlan 2 to 4094

    LSW2

    Vlan 10

    Vlan 20

    interface GigabitEthernet0/0/1

    port link-type trunk

    port trunk allow-pass vlan 2 to 4094

    interface GigabitEthernet0/0/2

    port link-type access

    port default vlan 20

    interface GigabitEthernet0/0/3

    port link-type access

    port default vlan 10

    VLAN间互联

    实验需求

    1、PC1和PC2的地址已预配

    2、按图示完成两台交换机的vlan配置

    3、在LSW1上配置各PC的网关地址,实现两台不同vlan的PC可以互相通信

    LSW2:

    Vlan 10

    Vlan 20

    interface GigabitEthernet0/0/1

    port link-type access

    port default vlan 10

    interface GigabitEthernet0/0/2

    port link-type access

    port default vlan 20

    interface GigabitEthernet0/0/3

    port link-type trunk

    port trunk allow-pass vlan 2 to 4094

    LSW1:

    Vlan 10

    Vlan 20

    interface Vlanif10

    ip address 192.168.10.254 255.255.255.0

    interface Vlanif20

    ip address 192.168.20.254 255.255.255.0

    interface GigabitEthernet0/0/1

    port link-type trunk

    port trunk allow-pass vlan 2 to 4094

  • 相关阅读:
    flex布局原理,常见的父项属性,flex布局子项常见属性,利用flex布局和float制作的有轮播图的携程旅行首页
    LLMs之InternLM:InternLM-20B的简介、安装、使用方法之详细攻略
    An工具介绍之骨骼工具
    Python机器学习bug:ValueError_ Expected 2D array, got 1D array instead
    转载-什么是微码Microcode
    SpringBoot 打包发布
    解决新创建的anaconda环境在C:\Users\xxx\.conda\envs\,而不在anaconda安装目录下的envs中
    台达DOP-B07S410触摸屏出现HMI no response无法上传的解决办法
    MAUI+Masa Blazor APP 各大商店新手发布指南(三)vivo篇
    【强化学习】深度Q网络(DQN)求解倒立摆问题 + Python代码实战
  • 原文地址:https://blog.csdn.net/zhynet000001/article/details/125427294