Skip to main content

moregeek program

单臂路由协议-多极客编程

这个实验主要是解决了用一个路由器完成两个VLAN之间的通信。

实验器材:一台交换机  一台录由器   两台电脑。还有些双胶线。

实验过程:

            1:连线 ,把PC1,PC2 分别连到交换机的0/1,0/2号端口。把交换机的0/10号端口和路由器的0/1号端口相连。

            2:进行交换机和路由器的一些配置。

                

switch(config)#enab

switch(config)#enable pass

switch(config)#enable password 123

switch(config)#vlan 10

switch(config-vlan)#exit

switch(config)#vlan 20

switch(config-vlan)#exit

switch(config-vlan)#int fa0/1

switch(config-if)#sw acc vlan 10

switch(config-if)#exit

switch(config)#int fa0/2

switch(config-if)#sw acc vlan 20

switch(config-if)#exit

switch(config)#int fa0/10

switch(config-if)#sw mode trunk

switch(config-if)#end

录由器的配置:

router(config-if)#

router(config-if)#exit

router(config)#int fa0/1.1

router(config-subif)#

%LINK-5-CHANGED: Interface FastEthernet0/1.1, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.1, changed state to up


router(config-subif)#ip add 1.1.1.254 255.255.255.0


% Configuring IP routing on a LAN subinterface is only allowed if that

subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,

or ISL vLAN.


router(config-subif)#

router(config-subif)#encpa

router(config-subif)#encap

router(config-subif)#encapsulation  dot1

router(config-subif)#encapsulation  dot1Q 

router(config-subif)#encapsulation  dot1Q 1

router(config-subif)#encap

router(config-subif)#encapsulation dot

router(config-subif)#encapsulation dot1Q 10

router(config-subif)#ip add 1.1.1.254 255.255.255.0

router(config-subif)#no shut

router(config-subif)#exit

router(config)#int fa0/1.2


%LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to up

router(config-subif)#encap

router(config-subif)#encapsulation dot

router(config-subif)#encapsulation dot1Q 20

router(config-subif)#ip add 2

                            ^

% Invalid input detected at '^' marker.

router(config-subif)#ip add 2.2.2.254 255.255.255.0

   3;给两台电脑分别设置    IP分别为1.1.1.1 255.255.255.0 和 2.2.2.2 255.255.255.0

   4:测试两台电脑间能否PING通。

    5:总结:这次试验最为奇特的地方是一个路由器的端口可以设成两个  很多个子端口,可以分别高IP。

      还有个新东西是VLAN 出的数据包路由器并不能识别,所以还行在路由器的子端口里加上encapsultion dotlQ  vlan  这么一条指令。

       动手操作得以实现,踏上网管之路。


OSPF 基本配置-多极客编程

实验 OSPF 基本配置【实验名称】OSPF 单区域基本配置。【实验目的】掌握在路由器上配置 OSPF 单区域。【背景描述】假设校园网通过 1 台三层交换机连到校园网出口路由器,路由器再和校园外的另 1 台路由器连接,现做适当配置,实现校园网内部主机与校园网外部主机的相互通信。本实验以两台路由器、1 台三层交换机为例。S3550 上划分有 VLAN10 和 VLAN50,其中 VLAN10 用于连

路由器 的远程配置-多极客编程

配置进入特权模式密码把特权密码配置为gd0668seo命令如下:Router>enableRouter#configureterminalEnterconfiguration commands, one per line.End with CNTL/Z.Router(config)#enablepassword gd0668seoRouter(config)#exit截图如下测试密码,退出特

OSPF的配置-多极客编程

今天我们小组进行了OSPF的基本配置实验,我们小组的成员有:王佳东,张蕙,刘赛宇。    OSPF(Open Shortest Path First,开放式最短路径优先)协议,是目前网络应用最广泛的路由协议之一。属于内部网关路由协议,能够适应各种规模的网络环境,是典型的链路状态协 议。OSPF路由协议通过向全网扩散本设备的链路状态信息,使网络中的每台设备最终同步于一个具有全网链路状态的数据库,

OSPF-多极客编程

【实验名称】OSPF 单区域基本配置。【实验目的】掌握在路由器上配置 OSPF 单区域。【背景描述】假设校园网通过 1 台三层交换机连到校园网出口路由器,路由器再和校园外的另 1 台路由器连接,现做适当配置,实现校园网内部主机与校园网外部主机的相互通信。本实验以两台路由器、1 台三层交换机为例。S3550 上划分有 VLAN10 和 VLAN50,其中 VLAN10 用于连接 RA,VLAN50

RIP-多极客编程

【实验名称】        RIP路由协议基本配置。 【实验目的】      掌握在路由器上如何配置RIP路由协议。 【背景描述】      假设在校园网在地理上分为2个区域,每个区域内分别有一台路由器连接了2个子网,需要将两台路由器通过以太网链路连接在一起并进行适当的配置,以实现这4个子网之间的互联互通。为了在未来每个校园区域扩充子网数量的时候,管理员不需要同时更改路由器的配置,计划使用RIP路

网络笔记-多极客编程

1.先配交换机trunk三层:int f0/0sw tr enca dosw mod tr二层:int f0/0sw mod tr2.划分vlan以及vtp server/clientvlan 划分:vlan 10name vlan10vtp server: vtp mod servervtp domain +名字vtp passwod +密码vtp client:vtp mod clientvt

Python学习记录-2016-12-12-多极客编程

出差归来:python课程更新重温:交互式界面3.x:input使用获取用户输入2.x:raw_input使用获取用户输入2.x:ipnut默认输入的是什么就显示什么,比如字符串,默认就显示字符串getpass模块importpassword = getpass.getpass("password:")pycharm不能调试这个模块四种变量方式1、字符串叠加:不推荐使用,会开辟多块内存info =

购物车-多极客编程

流程图:#! /usr/bin/env python# -*- coding:utf-8 -*-import jsonimport osuser_name = "lifei"user_passwd = "123"user_account = 0shop_car = []jiesuan_list = []flag = FalseN = 0while flag is not True:    user

登录-多极客编程

#! /usr/bin/env python # -*- coding:utf-8 -*- user_name = "lifei" user_passwd = "123" flag = 0 while flag < 10:     user = input("Input your username:").strip()     if flag >= 3:         with op

单臂路由实验-多极客编程

单边路由实验解决了用一个路由器完成两个VLAN之间的通信。实验器材:一台交换机  一台录由器   两台电脑。还有些双胶线。实验过程:            1:连线 ,把PC1,PC2 分别连到交换机的0/1,0/2号端口。把交换机的0/10号端口和路由器的0/1号端口相连。            2:进行交换机和路由器的一些配置。                switch(config)#en

centos7系统设置vpn客户端及查看设置路由表router-多极客编程

一、设置vpn客户端连接1.1安装软件包ppp/pptp/pptp-setupyum -y install ppp pptp pptp-setup1.2.创建vpn连接的配置文件pptpsetup --create<定义的名称> --server<服务器>  --username <用户名> --password <密码> [--start] <

远程连接主机,并用文件匹配方式创建用户-多极客编程

#!/usr/bin/expect-fset ip [lindex $argv 0]set passwd [lindex $argv 1]set path [lindex $argv 2]set file [lindex $argv 3]set cmd [lindex $argv 2] spawn  scp$file password username root@${ip}:$path expec