随笔分类 -  路由器与交换机

摘要:实验目的:掌握DHCP服务基本配置及DHCP中继服务配置,实现全网互通 拓扑图如下 配置如下 Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#interface f0/0 R1(config- 阅读全文
posted @ 2018-07-05 11:22 阮杰 阅读(945) 评论(0) 推荐(0)
摘要:拓扑图如下 Router3的配置 Router>enRouter#conf tRouter(config)#hostname R1R1(config)#enable secret 147 //为路由器的特权模式设置密码R1(config)#int s0/0/0R1(config-if)#ip add 阅读全文
posted @ 2018-07-05 10:22 阮杰 阅读(739) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0配置 由器0配置 Router>enRouter#conf tRouter(config)#interface s0/1/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shu 阅读全文
posted @ 2018-07-04 14:18 阮杰 阅读(451) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0配置 Router>enRouter#conf tRouter(config)#interface s0/0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdown 阅读全文
posted @ 2018-06-27 16:29 阮杰 阅读(241) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0配置 Router>enRouter#conf tRouter(config)#interface s0/0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdown 阅读全文
posted @ 2018-06-27 14:43 阮杰 阅读(346) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0配置 Router>enable Router#conf tRouter(config)#interface s0/0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shut 阅读全文
posted @ 2018-06-27 13:47 阮杰 阅读(233) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0 Router>en Router#conf t Router(config)#hostname router1 router1(config)#interface g0/0 router1(config-if)#ip address 192.168.1.1 255.255.25 阅读全文
posted @ 2018-06-26 19:44 阮杰 阅读(418) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0的配置 Router>en Router#conf t Router(config)#hostname Router1 Router1(config)#int l0 Router1(config-if)#ip addr 1.1.1.1 255.255.255.0 Router1( 阅读全文
posted @ 2018-06-26 18:29 阮杰 阅读(178) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0配置 Router>en Router#conf t Router(config)#hostname Rounter1 Rounter1(config)#int f0/0 Rounter1(config-if)#ip addr 192.168.1.2 255.255.255.0 阅读全文
posted @ 2018-06-26 16:38 阮杰 阅读(219) 评论(0) 推荐(0)
摘要:拓扑图如下 接下来配置路由器ip地址 路由器0 enable 进入特权模式 config t 进入全局配置模式 interface s0/2/0 进入接口 ip address 192.168.20.2 255.255.255.0 配置ip地址 clock rate 6400 设置同步时间 no s 阅读全文
posted @ 2018-06-25 09:28 阮杰 阅读(1557) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器0配置 Router>enable 进入特权模式 Router#configure terminal 进入全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostn 阅读全文
posted @ 2018-06-24 16:49 阮杰 阅读(5277) 评论(0) 推荐(0)
摘要:拓扑图如下 路由器1配置: Router>enable 进入特权模式 Router#config terminal 进入全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostnam 阅读全文
posted @ 2018-06-24 16:00 阮杰 阅读(580) 评论(0) 推荐(0)
摘要:拓扑图如下 我们将以上面的拓扑图进行实验以实现负载均衡和冗余的效果 配置路由器0 enable 进入特权模式 config t 进入全局配置模式 interface L0 ip address 192.168.1.1 255.255.255.0 exit interface s0/0/0 ip ad 阅读全文
posted @ 2018-06-24 14:22 阮杰 阅读(335) 评论(0) 推荐(0)
摘要:拓扑图如下 根桥交换机是根据优先级和MAC地址来选举的、优先级为4096的倍数以及0,交换机默认优先级为32769,当优先级一样,则比较MAC地址的大小,小的在根桥交换机 全局配置模式下 spanning-tree vlan 1 root primary 然后用show spanning-tree查 阅读全文
posted @ 2018-06-19 14:30 阮杰 阅读(260) 评论(0) 推荐(0)
摘要:拓扑图如下 Switch0配置 enable 进入特权模式 configure terminal 进入全局模式 interface port-channel 5 创建以太通道 switchport trunk encapsulation 将通道进行封装 switchport mode trunk 将 阅读全文
posted @ 2018-06-19 10:29 阮杰 阅读(334) 评论(0) 推荐(0)
摘要:拓扑图如下 我们要将,将switch0设置为server,将switch1设置为transparent,将switch2和switch3设置为client 交换机0做设置 enable 进入特权模式 configure terminal 进入全局配置模式 vtp domain ruan (自行设置的 阅读全文
posted @ 2018-06-19 09:58 阮杰 阅读(581) 评论(0) 推荐(0)
摘要:拓扑图如下 如上图所述 主机0和主机1在同一个路由器上 主机2和主机3在同一个路由器上 而且他们在同一网段上他们是可以相互ping通的 我们现在要把主机0和主机2划分到同一vlan 主机1和主机3划分到同一vlan 并且让相同vlan可以通信 不同vlan不能通信 在交换机0上配置vlan enab 阅读全文
posted @ 2018-06-14 16:55 阮杰 阅读(674) 评论(0) 推荐(0)
摘要:拓扑图如下 如上图所标设置 主机0设置地址为:192.168.1.1 主机1设置地址为:192.168.1.2 现在因为两台主机在同一网段中说以他们相互ping是ping得通的 我们想要想要在单个交换机上设置两个vlan,vlan和vlan之间是不能通信的, 所以当我们设置好vlan之后两台主机是p 阅读全文
posted @ 2018-06-14 13:14 阮杰 阅读(496) 评论(0) 推荐(0)
摘要:验目的:将交换机的配置文件和系统映像文件备份到TFTP服务器上,然后将自身的配置和系统映像删除,从TFTP服务器上恢复配置和系统映像 拓扑图 1.给服务器配置IP地址和子网掩码 进行交换机配置文件备份 1.点击交换机选择命令行 1.输入enable 进入特权模式 2.输入configure term 阅读全文
posted @ 2018-06-07 17:22 阮杰 阅读(746) 评论(0) 推荐(0)
摘要:任务要求:实验要求:在交换机f0/1端口上设置安全配置,使PC1或者PC2两台机器只有一台机器能够通信,另一台通信时端口则会自动关闭。 拓扑图 1.我们进入交换机命令行 2.输入enable 进入特权模式 2.输入configure terminal 进入全局模式 3.输入interface f0/ 阅读全文
posted @ 2018-06-07 16:48 阮杰 阅读(1482) 评论(0) 推荐(0)