学习啦 > 学习电脑 > 网络知识 > 路由器 > 路由器设置 > cisco思科 > cisco静态路由的应用怎么配置

cisco静态路由的应用怎么配置

时间: 权威724 分享

学习啦在线学习网cisco静态路由的应用怎么配置

  思科cisco生产的路由器、交换机设备和其他设备承载了全世界80%的互联网通信,成为硅谷中新经济的传奇,那么你知道cisco静态路由的应用怎么配置吗?下面是学习啦小编整理的一些关于cisco静态路由的应用怎么配置的相关资料,供你参考。

  cisco静态路由的应用配置的方法:

  静态路由的应用

  Switch 0 的配置:

学习啦在线学习网   Switch>en

  Switch>enable

  Switch#conf

  Switch#configure

  Switch#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Switch(config)#int

学习啦在线学习网   Switch(config)#interface f0/1

  Switch(config-if)#no swi

  Switch(config-if)#no switchport

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

学习啦在线学习网   %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#

学习啦在线学习网   Switch(config-if)#ip add

  Switch(config-if)#ip address 1.1.1.1 255.0.0.0

学习啦在线学习网   Switch(config-if)#no shut

  Switch(config-if)#no shutdown

  Switch(config-if)#exit

  Switch(config)#int

学习啦在线学习网   Switch(config)#interface f

  Switch(config)#interface fastEthernet 0/2

  Switch(config-if)#ip add

  Switch(config-if)#no sw

学习啦在线学习网   Switch(config-if)#no switchport

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

学习啦在线学习网   %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upSwitch(config-if)#

  Switch(config-if)#ip addre

学习啦在线学习网   Switch(config-if)#ip address 2.2.2.1 255.0.0.0

  Switch(config-if)#no shut

  Switch(config-if)#no shutdown

学习啦在线学习网   Switch(config-if)#exit

  Switch(config)#ip route 4.0.0.0 255.0.0.0 f

  Switch(config)#ip route 4.0.0.0 255.0.0.0 f?

学习啦在线学习网   FastEthernet

  Switch(config)#ip route 4.0.0.0 255.0.0.0 fa

  Switch(config)#ip route 4.0.0.0 255.0.0.0 fastEthernet 0/2

  Switch(config)#no shut

学习啦在线学习网   Switch(config)#exit

  %SYS-5-CONFIG_I: Configured from console by console

  Switch#show ip route

学习啦在线学习网   Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

  D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

  N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

  E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

  i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

学习啦在线学习网   * - candidate default, U - per-user static route, o - ODR

学习啦在线学习网   P - periodic downloaded static route

  Gateway of last resort is not set

学习啦在线学习网   C 1.0.0.0/8 is directly connected, FastEthernet0/1

  C 2.0.0.0/8 is directly connected, FastEthernet0/2

  S 4.0.0.0/8 is directly connected, FastEthernet0/2

  Switch#

  Switch#show ?

  access-lists List access lists

学习啦在线学习网   adjacency Adjacent nodes

  arp Arp table

  cdp CDP information

学习啦在线学习网   clock Display the system clock

学习啦在线学习网   controllers Interface controllers status

学习啦在线学习网   crypto Encryption module

  debugging State of each debugging option

学习啦在线学习网   dhcp Dynamic Host Configuration Protocol status

学习啦在线学习网   etherchannel EtherChannel information

学习啦在线学习网   flash: display information about flash: file system

  frame-relay Frame-Relay information

学习啦在线学习网   history Display the session command history

  hosts IP domain-name, lookup style, nameservers, and host table

  interfaces Interface status and configuration

  ip IP information

学习啦在线学习网   ipv6 IPv6 information

  mac-address-table MAC forwarding table

  ospf For OSPF debug only

学习啦在线学习网   ospfv3 For OSPFv3 debug only

  processes Active process statistics

学习啦在线学习网   protocols Active network routing protocols

  running-config Current operating configuration

  sessions Information about Telnet connections

学习啦在线学习网   spanning-tree Spanning tree topology

学习啦在线学习网   ssh Status of SSH server connections

  startup-config Contents of startup configuration

  tcp Status of TCP connections

学习啦在线学习网   terminal Display terminal configuration parameters

  users Display information about terminal lines

  version System hardware and software status

学习啦在线学习网   vlan VTP VLAN status

  vtp Configure VLAN database

学习啦在线学习网   Switch#show ip ?

  access-lists List access lists

  arp IP ARP table

学习啦在线学习网   cef Cisco Express Forwarding

  dhcp Show items in the DHCP database

  eigrp IP-EIGRP show commands

  interface IP interface status and configuration

  nat IP NAT information

学习啦在线学习网   ospf OSPF information

学习啦在线学习网   protocols IP routing protocol process parameters and statistics

学习啦在线学习网   rip IP RIP show commands

学习啦在线学习网   route IP routing table

学习啦在线学习网   ssh Information on SSH

学习啦在线学习网   Switch#show ip int

学习啦在线学习网   Switch#show ip interface ?

学习啦在线学习网   Ethernet IEEE 802.3

  FastEthernet FastEthernet IEEE 802.3

  GigabitEthernet GigabitEthernet IEEE 802.3z

学习啦在线学习网   Loopback Loopback interface

学习啦在线学习网   Serial Serial

学习啦在线学习网   Vlan Catalyst Vlans

  brief Brief summary of IP status and configuration

  

  Switch#show ip interface f

学习啦在线学习网   Switch#show ip interface fastEthernet 0/1

  FastEthernet0/1 is up, line protocol is up

  Internet protocol processing disabled

学习啦在线学习网   Switch#show ip interface fastEthernet 0/2

学习啦在线学习网   FastEthernet0/2 is up, line protocol is up

  Internet protocol processing disabled

  Switch#show ru

学习啦在线学习网   Switch#show running-config

学习啦在线学习网   Building configuration...

学习啦在线学习网   Current configurat

  !

学习啦在线学习网   hostname Switch ion : 1168 bytes

  !

学习啦在线学习网   version 12.2

  no service password-encryption

  !

  !

  !

  !

  !

学习啦在线学习网   ip ssh version 1

  !

学习啦在线学习网   port-channel load-balance src-mac

  !

  interface FastEthernet0/1

学习啦在线学习网   no switchport

学习啦在线学习网   ip address 1.1.1.1 255.0.0.0

学习啦在线学习网   duplex auto

学习啦在线学习网   speed auto

  !

  interface FastEthernet0/2

  no switchport

  ip address 2.2.2.1 255.0.0.0

学习啦在线学习网   duplex auto

学习啦在线学习网   speed auto

  !

565607