首页 > 其他分享 >思科综合小实验

思科综合小实验

时间:2023-09-23 11:04:39浏览次数:35  
标签:思科 int ip sw 192.168 255.255 实验 0.0 综合

创建一个拓扑

思科综合小实验_EIGRP

配置思路

在三层上配置VTP进行vlan的下发

设置MLS实现vlan路由

设置DHCP进行ip地址的下发,

配置STP发生环路

配置EIGRP,企业内网运行EIGRP,宣告精确到网络地址

配置NAT,在R1上配置PAT

配置PPP,R1和R2之间封装协议为PPP,使用CHAP双向认证,密码为love。

配置OSPF,R2和R3和R4之间运行OSPF,宣告精确到主机地址。

配置DNS,可以通过www.wakin.com访问HTTP服务器。

配置ACL,在R1上配置ACL,拒绝VLAN20的主机通过浏览器访问HTTP服务器,其他流量不受影响。

配置Telnet,要求DSW和R1均支持远程管理,密码为admin,要求密码在配置文件中加密。

ASW1命令配置

en

conf t

ho ASW1

int f0/24

sw mo trunk

sw noneg  

int f0/20

sw mo trunk

sw noneg

vtp mode client

vtp domain wakin

vtp version 2

vtp password 123

int f0/1

sw mo acc

sw acc vlan 10

int f0/11

sw mo acc

sw acc vlan 20

spann vlan 10,20 pri 4096

ASW2命令配置

en

conf t

ho ASW2

int f0/24

sw mo trunk

sw noneg  

int f0/20

sw mo trunk

sw noneg

vtp mode client

vtp domain wakin

vtp version 2

vtp password 123

int f0/1

sw mo acc

sw acc vlan 30

int f0/11

sw mo acc

sw acc vlan 40

spann vlan 30,40 pri 4096

DSW命令配置

en

conf t

ho DSW


service password-encry

line vty 0 4

password admin

login


int f0/22

sw trunk en dot1q

sw mo trunk

sw noneg  

int f0/23

sw trunk en dot1q

sw mo trunk

sw noneg


vtp mode server

vtp domain wakin

vtp version 2

vtp password 123


vlan 10

vlan 20

vlan 30

vlan 40


ip routing

int vlan 10

ip add 192.168.10.254 255.255.255.0

no shu

int vlan 20

ip add 192.168.20.254 255.255.255.0

no shu

int vlan 30

ip add 192.168.30.254 255.255.255.0

no shu

int vlan 40

ip add 192.168.40.254 255.255.255.0

no shu


ip dhcp pool vlan10

network 192.168.10.0 255.255.255.0

default-router 192.168.10.254

dns-server 217.1.1.2

ip dhcp pool vlan20

network 192.168.20.0 255.255.255.0

default-router 192.168.20.254

dns-server 217.1.1.2

ip dhcp pool vlan30

network 192.168.30.0 255.255.255.0

default-router 192.168.30.254

dns-server 217.1.1.2

ip dhcp pool vlan40

network 192.168.40.0 255.255.255.0

default-router 192.168.40.254

dns-server 217.1.1.2


int f0/24

no sw

ip add 192.168.0.2 255.255.255.0

no shu


router eigrp 1

no au

net 192.168.10.0 0.0.0.255

net 192.168.20.0 0.0.0.255

net 192.168.30.0 0.0.0.255

net 192.168.40.0 0.0.0.255

net 192.168.0.0 0.0.0.255


ip route 0.0.0.0 0.0.0.0 192.168.0.1

R1配置

en

conf t

ho R1


service password-encry

line vty 0 4

password admin

login


int f0/0

ip add 192.168.0.1 255.255.255.0

no shu

ip nat inside

ip access-group 100 in

int s2/0

ip add 12.1.1.1 255.255.255.252

no shu

ip nat outside

encap ppp

ppp authen chap


router eigrp 1

no au

net 192.168.0.0 0.0.0.255


ip route 0.0.0.0 0.0.0.0 12.1.1.2


access-list 1 permit 192.168.10.0 0.0.0.255

access-list 1 permit 192.168.20.0 0.0.0.255

access-list 1 permit 192.168.30.0 0.0.0.255

access-list 1 permit 192.168.40.0 0.0.0.255


ip nat inside source list 1 int s2/0 overload


username R2 password love


access-list 100 deny tcp 192.168.20.0 0.0.0.255 host 218.1.1.2 eq 80

access-list 100 permit ip any any

R2配置

en

conf t

ho R2


int s2/0

ip add 12.1.1.2 255.255.255.252

no shu

encap ppp

ppp authen chap

int f1/0

ip add 23.1.1.1 255.255.255.252

no shu

int f0/0

ip add 24.1.1.1 255.255.255.252

no shu


username R1 password love


router ospf 1

router-id 2.2.2.2

net 23.1.1.1 0.0.0.0 a 0

net 24.1.1.1 0.0.0.0 a 0

net 12.1.1.2 0.0.0.0 a 0

R3配置

en

conf t

ho R3


int s2/0

ip add 34.1.1.1 255.255.255.252

no shu

int f1/0

ip add 23.1.1.2 255.255.255.252

no shu

int f0/0

ip add 217.1.1.1 255.255.255.0

no shu


router ospf 1

router-id 3.3.3.3

net 23.1.1.2 0.0.0.0 a 0

net 34.1.1.1 0.0.0.0 a 0

net 217.1.1.1 0.0.0.0 a 0

R4配置

en

conf t

ho R4


int s2/0

ip add 34.1.1.2 255.255.255.252

no shu

int f0/0

ip add 24.1.1.2 255.255.255.252

no shu

int f1/0

ip add 218.1.1.1 255.255.255.0

no shu


router ospf 1

router-id 4.4.4.4

net 24.1.1.2 0.0.0.0 a 0

net 34.1.1.2 0.0.0.0 a 0

net 218.1.1.1 0.0.0.0 a 0

做完配置后,可以实现一下操作

1.全网互通

2.PC可以telnet远程连接DSW和R1

3.pc处了pc2不可以访问218.1.1.2网址,其他pc都可使用http服务

实验一共用到了

VTP,MSL,DHCP,STP,EIGRP,NAT,PPP,OSPF,DNS,ACL

大家有不懂的可以发私信



标签:思科,int,ip,sw,192.168,255.255,实验,0.0,综合
From: https://blog.51cto.com/u_16275429/7576606

相关文章

  • STM32开发之实验总结
    一、跑马灯实验  可以利用跑马灯实验来配置程序在正常运行指示【还有也可以使用串口实验来】,我们所要配置的有;  延迟函数  GPIO初始化函数  在初始化的时候我们要确定是那个GPIO口如果你需要用他的复用功能,你也需要设置。记住stm32在默认情况下都是死亡的,所以你无论......
  • 压缩和归档、文件搜索、文本过滤__实验
    1.使用root用户连接到具有图形界面的CentOS7系统2.将/etc目录归档到/root下,并命名为etc.tar.gz[root@localhost~]#tar-zcvf/root/etc.tar.gz/etc3.将etc.tar.gz文件释放到/tmp文件夹中。[root@localhost~]#tar-zxfetc.tar.gz-C/tmp/4.将/etc、/boot目录归档到......
  • 思科 显示连接的端口号
    1点击选项中的Options2选择Preferences3选择PortLabelsAlwaysShown(端口标签总是显示)4其他选项AnimationSound动画声ShowLinkLights显示链接灯HideDeviceLabel隐藏设备标签PortLabelsAlwaysshown端口标签总是显示......
  • 3. 设计数据采集模块——基于FPGA的串口发送数据实验
    1.设计数据采集模块基于Send_en的可控设计。使得使用外部信号Data_done来启动数据发送成为可能。放弃使用Tx_done控制的做法。因此把控制Send_en的逻辑放到内部去完成。这样设计更加符合应用。1.1设计要求把Send_en的控制部分放到模块内部去,使用Send_Go作为输入信号可能......
  • 2. 串口发送数据任务——基于FPGA的串口发送数据实验
    1.串口发送数据任务任务要求:使用上一节课设计的串口发送模块,设计一个数据发送器,每10ms以115200的波特率发送一个比特,每次发送的数据比前一个数据大1(计数器)1.1设计思路模块化设计,使用上一节课设计好的发送模块1.2设计开始设计Uart_Byte_Tx(单字节发送)模块选择使用以......
  • 实验1:SDN拓扑实践进阶部分(使用python循环语句)
    #!/usr/bin/envpythonfrommininet.topoimportTopoclassMyTopo(Topo): def__init__(self): Topo.__init__(self) #host foriinrange(1,9): self.addHost("h"+str(i)) #switch foriinrange(1,11): self.addSwitch("s&quo......
  • 实验一
    #!/usr/bin/envpythonfrommininet.netimportMininetfrommininet.nodeimportController,RemoteController,OVSControllerfrommininet.nodeimportCPULimitedHost,Host,Nodefrommininet.nodeimportOVSKernelSwitch,UserSwitchfrommininet.nodeimportI......
  • 数据采集实验一
    实验一作业①(1)实验1-1frombs4importBeautifulSoupfromurllibimportrequestimporturlliburl="http://www.shanghairanking.cn/rankings/bcur/2020"res=urllib.request.urlopen(url)data=res.read().decode()#爬取网页数据soup=BeautifulSoup(data,&......
  • Harbor ca 证书实验
    opensslgenrsa-outca.key4096opensslreq-x509-new-nodes-sha512-days3650-subj"/CN=10.131.130.24"-keyca.key-outca.crtopensslgenrsa-outserver.key4096opensslreq-new-sha512-subj"/CN=10.131.130.24"-keyserver......
  • 16 链路聚合实验
    实验理解链路聚合的作用和配置拓扑此时存在拓扑存在环路,配置STP生成树,STP生成树通过阻塞端口破环,这样两条链路将不会工作,在此场景下有更好的方式解决,链路聚合,将GE0/0/1-3绑定为一根逻辑的链路,在传输流量时,以负载均衡的方式分担给三条链路,因为是逻辑上的一条链路,所以没有环,还......