交换学习笔记=++=实验一 计算机和交换机基本设置

定好了目标就去踏踏实实的努力奥。。。
 
在H3C模拟器上:开始实验。。。(自学中。。。)
 
 
交换学习笔记=++=实验一 计算机和交换机基本设置_第1张图片
 
 
 
添加一个交换机,一个计算机,双击交换机,进入终端配置:
<Quidway>system
password:
[Quidway]sysname S3026                        ;交换机命名
[S3026]super password 111                     ;设置特权密码
[S3026]user-interface vty 0 4                   ;进入虚拟终端
[S3026-ui-vty0-4]authentication-mode password       ;设置口令模式
[S3026-ui-vty0-4]set authentication-mode password simple 222        ;设置口令
[S3026-ui-vty0-4]user privilege level 3            ;用户级别
[S3026-ui-vty0-4]quit
[S3026]quit
<S3026>sys
password:111
[S3026]display currect-config          ;显示当前配置
[S3026]dis curr      ;显示当前配置(简写)
[S3026]vlan 2        ;创建VLAN    "2"应该是创建VLAN的代号
[S3026-vlan2]port ethernet0/2          ;在VLAN中增加端口
[S3026-vlan2]port e0/4 to et0/6        ;在VLAN中增加端口
[S3026-vlan2]quit
[S3026]dis vlan               ;查看VLAN设置
[S3026]int e0/3                 ;进入接口视图
[S3026-Ethernet1]port access vlan 2       ;当前端口加入到VLAN
[S3026-Ethernet1]quit
[S3026]dis vlan             ;查看VLAN设置
[S3026]dis curr              ;显示当前配置
[S3026]interface vlan 2          ;进入接口视图
[S3026-Vlan-interface2]ip address 10.65.1.8 255.255.0.0           ;写入IP地址
[S3026-Vlan-interface2]quit
[S3026]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2      ;静态路由=网关
[S3026]ip default-gateway 10.65.1.2
[S3026]dis curr          ;显示当前配置
[S3026]save     ;保存

双击小电脑:
login:root
password:linux
[root@PCA root]#ifconfig eth0 10.65.1.1 netmask 255.255.0.0   在电脑上写入IP地址和子网掩码(Linux)
[root@PCA root]#ifconfig    查看IP地址和子网掩码
[root@PCA root]#route add default gw 10.65.1.2      写入网关
[root@PCA root]#route    查看网关
[root@PCA root]#ping 10.65.1.8     PING目标IP地址
[root@PCA root]#telnet 10.65.1.8    远程目标IP地址
 
//附件中上传H3C模拟器,希望想一起学习交换和路由的朋友们互相学习。。。

本文出自 “SDbaby” 博客,谢绝转载!

你可能感兴趣的:(计算机,设置,休闲,交换机,实验)