- 互联网云Cloud 1连接到我的LAN而不是环回。
- R1 路由器的 F0/0 正在从 DHCP 获取 IP,我可以从 LAN 中的任何远程主机远程登录和 ping。
- R1 还配置了 SNMP 访问(公共社区字符串)
- R1 路由器的 F0/1 接口的 IP 是手动配置的。
- 我可以从 LAN 上的任何远程主机 ping 这个接口,但是 Telnet 失败。R2 路由器的 F0/0 ip 是手动配置的。这里的情况是一样的,我可以ping但是telnet失败了。R1 和 R2 之间的所有配置都相同。
再次提一下,所有接口都可以从同一 LAN 中的任何远程主机 ping,但是只有 R1 的 F0/0 可以远程登录(希望这是一个词)
我可以做一些配置更改来获得对所有接口的 telnet 访问吗?
PS:我的云网关是10.226.22.1
R1的配置:
Building configuration...
Current configuration : 2016 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address dhcp
duplex half
!
interface FastEthernet1/0
ip address 10.226.22.34 255.255.255.224
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet3/0
no ip address
shutdown
negotiation auto
!
interface Ethernet4/0
no ip address
shutdown
duplex half
!
interface Ethernet4/1
no ip address
shutdown
duplex half
!
interface Ethernet4/2
no ip address
shutdown
duplex half
!
interface Ethernet4/3
no ip address
shutdown
duplex half
!
interface Ethernet4/4
no ip address
shutdown
duplex half
!
interface Ethernet4/5
no ip address
shutdown
duplex half
!
interface Ethernet4/6
no ip address
shutdown
duplex half
!
interface Ethernet4/7
no ip address
shutdown
duplex half
!
interface FastEthernet5/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet5/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router rip
network 10.0.0.0
!
ip route 0.0.0.0 0.0.0.0 10.226.22.1
!
ip http server
no ip http secure-server
ip http path flash:
!
!
snmp-server community public RO
no cdp advertise-v2
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
telephony-service
max-conferences 4 gain -6
web admin system name cisco secret 5 $1$1pTn$/eGx7afnUPhFB2AqoFApH.
dn-webedit
time-webedit
!
!
line con 0
stopbits 1
line aux 0
line vty 0 4
!
!
end
R2的配置:
Building configuration...
Current configuration : 2119 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.226.22.35 255.255.255.224
duplex half
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet3/0
no ip address
shutdown
negotiation auto
!
interface Ethernet4/0
no ip address
shutdown
duplex half
!
interface Ethernet4/1
no ip address
shutdown
duplex half
!
interface Ethernet4/2
no ip address
shutdown
duplex half
!
interface Ethernet4/3
no ip address
shutdown
duplex half
!
interface Ethernet4/4
no ip address
shutdown
duplex half
!
interface Ethernet4/5
no ip address
shutdown
duplex half
!
interface Ethernet4/6
no ip address
shutdown
duplex half
!
interface Ethernet4/7
no ip address
shutdown
duplex half
!
interface FastEthernet5/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet5/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router rip
network 10.0.0.0
!
ip route 0.0.0.0 0.0.0.0 10.226.22.34
!
ip http server
no ip http secure-server
ip http path flash:
!
!
no cdp advertise-v2
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
telephony-service
max-conferences 4 gain -6
web admin system name cisco secret 5 $1$/jP3$0HbV8qC5BIn8Ezww4Nuv7.
dn-webedit
time-webedit
!
!
line con 0
stopbits 1
line aux 0
line vty 0 4
login
transport input telnet
transport output telnet
line vty 5 15
login
transport input telnet
transport output telnet
!
!
end
作为附加信息,我的 R1 网关是 10.226.22.1,无法从 R2 访问。(也许我需要以某种方式从 R2 获取网关?)
R1的路由信息:
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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 10.226.22.1 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
S 10.238.60.13/32 [254/0] via 10.226.22.1, FastEthernet0/0
C 10.226.22.32/27 is directly connected, FastEthernet1/0
C 10.226.22.0/27 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 10.226.22.1
R2的路由信息:
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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 10.226.22.34 to network 0.0.0.0
10.0.0.0/27 is subnetted, 2 subnets
C 10.226.22.32 is directly connected, FastEthernet0/0
R 10.226.22.0 [120/1] via 10.226.22.34, 00:00:15, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 10.226.22.34