给服务器添加静态路由(服务器设置静态ip)「服务器怎么加静态路由」

  三台路由器和两台PC机

  

  设置R1的路由

  RT1

  #Oct1120:08:28:8202017RT1SHELL/4/LOGIN:

  Trap1.3.6.1.4.1.25506.2.2.1.1.3.0.1hh3cLogIn:loginfromConsole

  %Oct1120:08:28:8202017RT1SHELL/5/SHELL_LOGIN:Consoleloggedinfromcon0.

  RT1

  RT1sys

  RT1system-view

  SystemView:returntoUserViewwithCtrl+Z.

  [RT1]int

  [RT1]interfaceg

  [RT1]interfaceGigabitEthernet0/0/0

  [RT1-GigabitEthernet0/0/0]ipadd

  [RT1-GigabitEthernet0/0/0]ipaddress192.168.1.124

  [RT1-GigabitEthernet0/0/0]intg0/0/1

  [RT1-GigabitEthernet0/0/1]ipadd

  [RT1-GigabitEthernet0/0/1]ipaddress192.168.2.124

  [RT1-GigabitEthernet0/0/1]dis

  [RT1-GigabitEthernet0/0/1]displayipintbr

  [RT1-GigabitEthernet0/0/1]displayipintbrief

  *down:administrativelydown

  (s):spoofing

  InterfacePhysicalProtocolIPAddressDeion

  GigabitEthernet0/0/0upup192.168.1.1GigabitEt...

  GigabitEthernet0/0/1upup192.168.2.1GigabitEt...

  GigabitEthernet0/0/2downdownunassignedGigabitEt...

  GigabitEthernet0/0/3downdownunassignedGigabitEt...

  Serial0/1/0downdownunassignedSerial0/1...

  Serial0/1/1downdownunassignedSerial0/1...

  Serial0/1/2downdownunassignedSerial0/1...

  Serial0/1/3downdownunassignedSerial0/1...

  [RT1-GigabitEthernet0/0/1]displayiprouting-table

  RoutingTables:Public

  Destinations:6Routes:6

  Destination/MaskProtoPreCostNextHopInterface

  127.0.0.0/8Direct00127.0.0.1InLoop0

给服务器添加静态路由(服务器配置静态ip) 给服务器添加静态路由(服务器设置
静态ip)「服务器怎么加静态路由」 行业资讯

  127.0.0.1/32Direct00127.0.0.1InLoop0

  192.168.1.0/24Direct00192.168.1.1GE0/0/0

  192.168.1.1/32Direct00127.0.0.1InLoop0

  192.168.2.0/24Direct00192.168.2.1GE0/0/1

  192.168.2.1/32Direct00127.0.0.1InLoop0

  [RT1-GigabitEthernet0/0/1]

  [RT1-GigabitEthernet0/0/1]quit

  [RT1]iproute

  [RT1]iproute-

  [RT1]iproute-static192.168.3.024192.168.2.2

  [RT1]iproute

  [RT1]iproute-s

  [RT1]iproute-static192.168.4.024192.168.3.2

  [RT1]dis

  [RT1]displayiproute

  [RT1]displayiproutes

  [RT1]displayiproute-

  [RT1]displayiproute-

  [RT1]displayiproute-s

  [RT1]displayiproute-t

  [RT1]displayiprout

  [RT1]displayiprouting-table

  RoutingTables:Public

给服务器添加静态路由(服务器配置静态ip) 给服务器添加静态路由(服务器设置
静态ip)「服务器怎么加静态路由」 行业资讯

  Destinations:8Routes:8

  Destination/MaskProtoPreCostNextHopInterface

  127.0.0.0/8Direct00127.0.0.1InLoop0

  127.0.0.1/32Direct00127.0.0.1InLoop0

  192.168.1.0/24Direct00192.168.1.1GE0/0/0

  192.168.1.1/32Direct00127.0.0.1InLoop0

  192.168.2.0/24Direct00192.168.2.1GE0/0/1

  192.168.2.1/32Direct00127.0.0.1InLoop0

  192.168.3.0/24Static600192.168.2.2GE0/0/1

  192.168.4.0/24Static600192.168.3.2GE0/0/1

  设置R2的路由

  RT2

  #Oct1120:18:52:3572017RT2SHELL/4/LOGIN:

  Trap1.3.6.1.4.1.25506.2.2.1.1.3.0.1hh3cLogIn:loginfromConsole

  %Oct1120:18:52:3572017RT2SHELL/5/SHELL_LOGIN:Consoleloggedinfromcon0.

  RT2sys

  RT2system-view

  SystemView:returntoUserViewwithCtrl+Z.

  [RT2]int

  [RT2]interfaceg

  [RT2]interfaceGigabitEthernet0/0/0

  [RT2-GigabitEthernet0/0/0]ipadd

  [RT2-GigabitEthernet0/0/0]ipaddress192.168.2.224

  [RT2-GigabitEthernet0/0/0]undosh

  InterfaceGigabitEthernet0/0/0isnotshutdown

  [RT2-GigabitEthernet0/0/0]int

  [RT2-GigabitEthernet0/0/0]intg

  [RT2-GigabitEthernet0/0/0]intg0/0/1

  [RT2-GigabitEthernet0/0/1]ipadd

  [RT2-GigabitEthernet0/0/1]ipaddress192.168.3.124

  [RT2-GigabitEthernet0/0/1]undosh

  InterfaceGigabitEthernet0/0/1isnotshutdown

  [RT2-GigabitEthernet0/0/1]dis

  [RT2-GigabitEthernet0/0/1]displayipintbr

  [RT2-GigabitEthernet0/0/1]displayipintbrief

  *down:administrativelydown

  (s):spoofing

  InterfacePhysicalProtocolIPAddressDeion

  GigabitEthernet0/0/0upup192.168.2.2GigabitEt...

  GigabitEthernet0/0/1upup192.168.3.1GigabitEt...

  GigabitEthernet0/0/2downdownunassignedGigabitEt...

  GigabitEthernet0/0/3downdownunassignedGigabitEt...

  Serial0/1/0downdownunassignedSerial0/1...

  Serial0/1/1downdownunassignedSerial0/1...

  Serial0/1/2downdownunassignedSerial0/1...

  Serial0/1/3downdownunassignedSerial0/1...

  [RT2-GigabitEthernet0/0/1]dis

  [RT2-GigabitEthernet0/0/1]displayiproute

  [RT2-GigabitEthernet0/0/1]displayiprout

  [RT2-GigabitEthernet0/0/1]displayiprouting-table

  RoutingTables:Public

  Destinations:6Routes:6

  Destination/MaskProtoPreCostNextHopInterface

  127.0.0.0/8Direct00127.0.0.1InLoop0

  127.0.0.1/32Direct00127.0.0.1InLoop0

  192.168.2.0/24Direct00192.168.2.2GE0/0/0

  192.168.2.2/32Direct00127.0.0.1InLoop0

  192.168.3.0/24Direct00192.168.3.1GE0/0/1

  192.168.3.1/32Direct00127.0.0.1InLoop0

  [RT2-GigabitEthernet0/0/1]

  [RT2-GigabitEthernet0/0/1]quit

  [RT2]iprout

  [RT2]iproute-s

  [RT2]iproute-static192.168.1.024192.168.2.1

  [RT2]iproute

  [RT2]iproute-s

  [RT2]iproute-static192.168.4.024192.168.3.2

  [RT2]dis

  [RT2]displayip

  [RT2]displayipr

  [RT2]displayiprouting-table

  RoutingTables:Public

  Destinations:8Routes:8

  Destination/MaskProtoPreCostNextHopInterface

  127.0.0.0/8Direct00127.0.0.1InLoop0

  127.0.0.1/32Direct00127.0.0.1InLoop0

  192.168.1.0/24Static600192.168.2.1GE0/0/0

  192.168.2.0/24Direct00192.168.2.2GE0/0/0

  192.168.2.2/32Direct00127.0.0.1InLoop0

  192.168.3.0/24Direct00192.168.3.1GE0/0/1

  192.168.3.1/32Direct00127.0.0.1InLoop0

  192.168.4.0/24Static600192.168.3.2GE0/0/1

  设置R3的路由

  RT3

  RT3sys

  RT3system-view

  SystemView:returntoUserViewwithCtrl+Z.

  [RT3]int

  [RT3]interfaceg

  [RT3]interfaceGigabitEthernet0/0/0

  [RT3-GigabitEthernet0/0/0]ipadd

  [RT3-GigabitEthernet0/0/0]ipaddress192.168.3.224

  [RT3-GigabitEthernet0/0/0]int

  [RT3-GigabitEthernet0/0/0]intg0/0/1

  [RT3-GigabitEthernet0/0/1]ipadd

  [RT3-GigabitEthernet0/0/1]ipaddress192.168.4.124

  [RT3-GigabitEthernet0/0/1]undosh

  InterfaceGigabitEthernet0/0/1isnotshutdown

  [RT3-GigabitEthernet0/0/1]dis

  [RT3-GigabitEthernet0/0/1]displayiproute

  [RT3-GigabitEthernet0/0/1]displayipintbr

  [RT3-GigabitEthernet0/0/1]displayipintbrief

  *down:administrativelydown

  (s):spoofing

  InterfacePhysicalProtocolIPAddressDeion

  GigabitEthernet0/0/0upup192.168.3.2GigabitEt...

  GigabitEthernet0/0/1upup192.168.4.1GigabitEt...

  GigabitEthernet0/0/2downdownunassignedGigabitEt...

  GigabitEthernet0/0/3downdownunassignedGigabitEt...

  Serial0/1/0downdownunassignedSerial0/1...

  Serial0/1/1downdownunassignedSerial0/1...

  Serial0/1/2downdownunassignedSerial0/1...

  Serial0/1/3downdownunassignedSerial0/1...

  [RT3-GigabitEthernet0/0/1]dis

  [RT3-GigabitEthernet0/0/1]displayiproute

  [RT3-GigabitEthernet0/0/1]displayiprout

  [RT3-GigabitEthernet0/0/1]displayiprouting-table

  RoutingTables:Public

  Destinations:6Routes:6

  Destination/MaskProtoPreCostNextHopInterface

  127.0.0.0/8Direct00127.0.0.1InLoop0

  127.0.0.1/32Direct00127.0.0.1InLoop0

  192.168.3.0/24Direct00192.168.3.2GE0/0/0

  192.168.3.2/32Direct00127.0.0.1InLoop0

  192.168.4.0/24Direct00192.168.4.1GE0/0/1

  192.168.4.1/32Direct00127.0.0.1InLoop0

  [RT3-GigabitEthernet0/0/1]quit

  [RT3]iproute

  [RT3]iproute-s

  [RT3]iproute-static192.168.2.024192.168.3.1

  [RT3]iproute

  [RT3]iproute-s

  [RT3]iproute-static192.168.1.024192.168.2.1

  [RT3]dis

  [RT3]displayiprout

  [RT3]displayiprouting-table

  RoutingTables:Public

  Destinations:8Routes:8

  Destination/MaskProtoPreCostNextHopInterface

  127.0.0.0/8Direct00127.0.0.1InLoop0

  127.0.0.1/32Direct00127.0.0.1InLoop0

  192.168.1.0/24Static600192.168.2.1GE0/0/0

  192.168.2.0/24Static600192.168.3.1GE0/0/0

  192.168.3.0/24Direct00192.168.3.2GE0/0/0

  192.168.3.2/32Direct00127.0.0.1InLoop0

  192.168.4.0/24Direct00192.168.4.1GE0/0/1

  192.168.4.1/32Direct00127.0.0.1InLoop0

  测试两台PC机的连通

  

你可能想看:

关键词:

客户评论

我要评论