纯白一个,求助各位大神
我是一个小白,对路由器设置一窍不通。请各位大神帮忙分析路由器配置文件。路由器是2911。需要将一个口设置为ip172.22.101.38掩码255.255.255.252,跟上级外网连接。另外这个路由器要作为内网的两个网关,分别是172.22.105.129/172.22.103.129。
大神帮看下面的配置有什么问题,导致接上路由器就连不到外网,是不是0/0口ip没设对?最好帮着解释每行的意思。
Building configuration...
Current configuration : 1838 bytes
!
! Last configuration change at 13:49:24 UTC Mon Nov 20 2017
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname GurangRao
!
boot-start-marker
boot-end-marker
!
!
!
aaa new-model
!
!
aaa accounting system default start-stop group radius
!
!
!
!
!
aaa session-id common
!
no ipv6 cef
ip source-route
ip cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
crypto pki token default removal timeout 0
!
!
license udi pid CISCO2911/K9 sn FGL154811X7
!
!
username admin password 0 admin
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.1
description ****To-DY****
encapsulation dot1Q 4087
ip address 172.22.101.38 255.255.255.252
!
interface GigabitEthernet0/0.2
!
interface GigabitEthernet0/1
description ****LAN****
ip address 172.22.105.129 255.255.255.224 secondary
ip address 172.22.103.129 255.255.255.128
duplex auto
speed auto
!
interface GigabitEthernet0/2
description TO-SW
ip address 1.1.4.1 255.255.255.252
duplex auto
speed auto
!
router ospf 100
network 172.22.101.36 0.0.0.3 area 57
network 172.22.103.128 0.0.0.127 area 57
network 172.22.105.128 0.0.0.31 area 57
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 10.60.165.0 255.255.255.0 1.1.4.2
ip route 172.16.1.0 255.255.255.0 1.1.4.2
!
!
!
!
!
!
control-plane
!
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password admin
transport input all
line vty 5 15
transport input all
!
scheduler allocate 20000 1000
end
GR#
interface GigabitEthernet0/0.2
!
interface GigabitEthernet0/1
description ****LAN****
ip address 172.22.105.129 255.255.255.224 secondary
ip address 172.22.103.129 255.255.255.128
这里配错了既然配置了子接口 0/1 no shutdown就可以了
主要配置在 0/0.1 0/0.2里
ip route 10.60.165.0 255.255.255.0 1.1.4.2
ip route 172.16.1.0 255.255.255.0 1.1.4.2
做一条默认路由
ip route 0.0.0.0 0.0.0.0 1.1.4.2 leidian00 发表于 2017-12-1 16:42 static/image/common/back.gif
interface GigabitEthernet0/0.2
!
interface GigabitEthernet0/1
谢谢
whiteghostsdc 发表于 2017-12-4 09:17 static/image/common/back.gif
忘记添加路由了
谢谢,问题已解决,谢谢各位!
页:
[1]