当前位置: 首页 > news >正文

主机屋安装wordpress合肥全网优化

主机屋安装wordpress,合肥全网优化,app开发企业,图片上传 网站建设教学视频拓扑及需求 网络拓扑及 IP 编址如图所示;PC1 及 PC2 使用路由器模拟;在 R1、R2、R3 上配置静态路由,保证全网可达;在 R1、R3 上删掉上一步配置的静态路由,改用默认路由,仍然要求全网可达。 各设备具体配置…

拓扑及需求

  • 网络拓扑及 IP 编址如图所示;PC1 及 PC2 使用路由器模拟;
  • 在 R1、R2、R3 上配置静态路由,保证全网可达;
  • 在 R1、R3 上删掉上一步配置的静态路由,改用默认路由,仍然要求全网可达。
    在这里插入图片描述
    各设备具体配置如下:
    R1 的配置如下:
Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# interface serial 0/0
R1(config-if)# ip address 192.168.12.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface fastethernet 0/0
R1(config-if)# ip address 192.168.1.254 255.255.255.0
R1(config-if)# no shutdown

R2 的配置如下:

Router> enable
Router# configure terminal
Router(config)# hostname R2
R2(config)# interface serial 0/0
R2(config-if)# clock rate 64000
R2(config-if)# ip address 192.168.12.2 255.255.255.0 
R2(config-if)# no shutdown
R2(config-if)# interface serial 0/1
R2(config-if)# clock rate 64000
R2(config-if)# ip address 192.168.23.2 255.255.255.0
R2(config-if)# no shutdown

R3 的配置如下

Router> enable
Router# configure terminal
Router(config)# hostname R3
R3(config)# interface serial 0/0
R3(config-if)# ip address 192.168.23.3 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# interface fastethernet 0/1
R3(config-if)# ip address 192.168.2.254 255.255.255.0
R3(config-if)# no shutdown

对于 PC,我们是采用路由器来模拟,需要对其做以下配置
PC1(使用路由器来模拟):

Router> enable
Router# configure terminal
Router(config)# hostname PC1
PC1(config)# no ip routing !! 将路由器模拟成 PC 机,关闭路由功能
PC1(config)# ip default-gateway 192.168.1.254 !! 为 PC 机指定网关
PC1(config)#interface fastethernet 0/0
PC1(config-if)# ip address 192.168.1.1 255.255.255.0 !! 为 PC 配置 IP 地址
PC1(config-if)# no shutdown

注意:一旦配置no ip routing后,路由器就失去了路由功能了,因此必须使用 ip default-gateway
的方式为其设置默认网关,而不能使用默认路由(ip route 0.0.0.0 0.0.0.0)的方式。

PC2 的配置如下:

Router> enable
Router# configure terminal
Router(config)# hostname PC2 PC2(config)# no ip routing
PC2(config)# ip default-gateway 192.168.2.254
PC2(config)# interface fastethernet 0/0
PC2(config-if)# ip address 192.168.2.1 255.255.255.0
PC2(config-if)# no shutdown
测试 1:查看各设备直连接口状态。
PC1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up 
PC2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.2.1 YES manual up up 
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
serial0/0 192.168.12.1 YES manual up up 
FastEthernet0/0 192.168.1.254 YES manual up up 
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
serial0/0 192.168.12.2 YES manual up up 
serial0/1 192.168.23.2 YES manual up up 
R3#show ip interface brief
Interface IP-Address OK? Method Status Protocol
serial0/0 192.168.23.3 YES manual up up 
FastEthernet0/1 192.168.2.254 YES manual up up 
测试 1 结论:各设备通过命令 show ip intereface brief 检测到各接口状态和协议双

配置静态路由,使 PC 之间可以互相通信

R1 配置去往 192.168.23.0/24 及 192.168.2.0/24 网段的路由
R1(config)# ip route 192.168.2.0 255.255.255.0 192.168.12.2
R1(config)# ip route 192.168.23.0 255.255.255.0 192.168.12.2
完成配置后查看路由表,可以看到我们刚才配置的静态路由条目
R1#show ip route 
C 192.168.12.0/24 is directly connected, Serial0/0
S 192.168.23.0/24 [1/0] via 192.168.12.2
C 192.168.1.0/24 is directly connected, FastEthernet0/0
S 192.168.2.0/24 [1/0] via 192.168.12.2

以上输出的就是 R1 的路由表了:

  • 从路由表中可以看到,一共有四个条目,也就是四条路由,其中两条路由标记为“C”,
    也就是 Connected,意思是直连网段的路由。另外还有两条标记为“S”,也就是 Static 静 态路由,正是我们为 R1 配置的两条静态路由。
  • 路由条目中的 [1/0] 意思是路由的 [管理距离/度量值]。
  • 路由条目中的 via 192.168.12.2,是下一跳 IP 地址。
接着为 R2 配置去往 192.168.1.0/24 及 192.168.2.0/24 网段的路由:
R2(config)# ip route 192.168.2.0 255.255.255.0 192.168.23.3
!! R2 配置去往 PC2 所在网段的静态路由
R2(config)# ip route 192.168.1.0 255.255.255.0 192.168.12.1 
!! R2 配置去往 PC1 所在网段的静态路由
R3 配置去往 192.168.1.0/24 及 192.168.12.0/24 网段的路由:
R3(config)# ip route 192.168.1.0 255.255.255.0 192.168.23.2
R3(config)# ip route 192.168.12.0 255.255.255.0 192.168.23.2
测试 4:查看两台 PC1 是否能够 ping 通 PC2。
PC1#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/91/124 ms
测试 5:查看 PC1 能否 ping192.168.23.0/24 网段
PC1#ping 192.168.23.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.23.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/91/124 ms
http://www.dinnco.com/news/79572.html

相关文章:

  • 深圳建站公司服务国外搜索引擎排名百鸣
  • 网站建设 事项链接检测工具
  • 做seo推广做网站有用吗南京seo外包
  • 淘宝网站网页设计说明广州网站到首页排名
  • 发任务做任务得网站武汉百度开户电话
  • 网站章子怎么做阿里云搜索引擎网址
  • 网站域名备案号查询怎么开发网站
  • 重型机械网站开发模版公司地址怎么弄在百度上显示
  • 后缀的域名暂无法进行网站备案爱链接
  • 国外教做蛋糕的网站国外网站排名前十
  • 哪里可以做网站平台百度平台商家联系方式
  • 网乐科技网站建设网站一级域名和二级域名
  • 网络规划设计师含金量高吗深圳市seo上词贵不贵
  • 网站建设哪个软件好深圳设计公司
  • 大连做网站首选领超科技关键词免费网站
  • 商品网站怎么做网站规划与设计
  • 哪个网站可以查企业信息营销型网站建设优化建站
  • 网站怎么做市场分析百度搜索推广的五大优势
  • 在什么网站做推广最好专业精准网络营销推广
  • 山东省春季高考网站建设试题广州新闻头条最新消息
  • 寮步网站建设高性能怎么写软文推广
  • 校园网站建设申请报告网站托管维护
  • 淮安做网站.哪家网络公司好?如何能查到百度搜索排名
  • 石家庄网站建设销售电话保定网站建设方案优化
  • 路桥贝斯特做网站好吗最新社会舆情信息
  • 网站设计怎么做好手机优化助手下载
  • 长沙营销型网站开发app推广注册放单平台
  • 学做彩票网站有哪些百度最新收录方法
  • wordpress 极验企业网站seo推广方案
  • 自己做个网站多少钱南昌百度搜索排名优化