Меню

Overlaps with gigabitethernet0 0 ошибка

When does this error appear?

This error appears while attempting to configure a Layer 3 interface on a router or switch running Cisco IOS. It appears in one of the following 2 cases:

  • When using the ip address command; or,
  • When issuing the no shutdown command

Why does this error appear?

This error appears when multiple interfaces on a router are configured with IP Addresses from overlapping subnets.

Let’s look at an example:

In the following scenario, there is one router connected to 2 switches.

  • Interface gi0/1 is enabled, connected to Switch1, and assigned the IP Address 172.20.100.1 255.255.254.0
  • Interface gi0/0 is enabled and connected to Switch2. There is no IP Address assigned to gi0/0.
Router1 Switch1

172.20.100.1/23

gi0/1

gi0/0
Switch2

Suppose we now try to configure an IP Address on interface gi0/0. We attempt to configure the IP Address 172.20.101.1 255.255.255.0:

Router1 Console

Router1(config)#interface gi0/0

Router1(config-if)#ip address 172.20.101.1 255.255.255.0

% 172.20.101.0 overlaps with GigabitEthernet0/1

Router1(config-if)#

Interface gi0/1 is already connected to the network 172.20.100.0/23. This network covers the range of addresses from:

172.20.100.0 to 172.20.101.255

The network 172.20.101.0/24 covers the range of addresses from:

172.20.101.0 to 172.20.101.255

When we attempt to configure int gi0/0 with the IP Address 172.20.101.1 255.255.255.0 we are essentially assigning the interface to the network 172.20.101.0 /24

We cannot assign multiple interfaces to overlapping subnets. The router outputs a message indicating that the network 172.20.101.0 overlaps with the network connected to interface gi0/1.

A second example:

Let’s modify the scenario a little bit. In this scenario

  • Interface gi0/1 is enabled, connected to Switch1, and assigned the IP Address 172.20.100.1 255.255.254.0
  • Interface gi0/0 is shutdown and connected to Switch2. There is no IP Address assigned to gi0/0.
Router1 Switch1

172.20.100.1/23

gi0/1

gi0/0
Switch2

Suppose we now try to configure an IP Address on interface gi0/0. We attempt to configure the IP Address 172.20.101.1 255.255.255.0:

Router1 Console

Router1(config)#interface gi0/0

Router1(config-if)#ip address 172.20.101.1 255.255.255.0

Router1(config-if)#

This time we are allowed to configure the IP Address and do not receive an error message. Why is that?

At this point gi0/0 is shutdown. Even if we configure an IP Address on it, this interface will not be involved in any routing decisions.

While the line protocol on an interface is down, we are allowed to configure an IP Address on it even if it overlaps with the network connected to another interface.

Let us now try to enable the interface. (It is already connected to an enabled interface on another device.)

Router1 Console

Router1(config)#interface gi0/0

Router1(config-if)#ip address 172.20.101.1 255.255.255.0

Router1(config-if)#no shutdown

% 172.20.101.0 overlaps with GigabitEthernet0/1

Router1(config-if)#

When we enter the no shutdown command, the router outputs a message indicating that the network 172.20.101.0 overlaps with the network connected to interface gi0/1.

The interface remains administratively shutdown.

If we first shutdown interface gi0/1, we are then allowed to enable gi0/0 with its existing IP Address configuration:

Router1 Console

Router1(config)#interface gi0/0

Router1(config-if)#ip address 172.20.101.1 255.255.255.0

Router1(config-if)#no shutdown

% 172.20.101.0 overlaps with GigabitEthernet0/1

Router1(config)#interface gi0/1

Router1(config-if)#shutdown

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down

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

Router1(config)#interface gi0/0

Router1(config-if)#no shutdown

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

Router1(config-if)#

Цитата
Сообщение от insect_87
Посмотреть сообщение

а вы понимаете, что вы делаете?

вроде да. настраивал OSPF

приведу весь конфиг из пакет рэйсера

http://ciscotips.ru/singlearea-ospf-configuration
https://www.smart-soft.ru/blog… tsii_ospf/
https://easy-network.ru/50-urok-30.html
————[R0]————
Press RETURN to get started.

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi 0/0
Router(config-if)#
Router(config-if)#ip ad
Router(config-if)#ip address 10.10.10.2 255.255.255.0
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

Router con0 is now available

Press RETURN to get started.

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.30, changed state to up

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#net
Router(config-router)#network 192.168.0.0 0.0.255.255 area 0
Router(config-router)#network 10.10.10.0 0.255.255.255 area 0
Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#
Router#sh ip rou
Codes: L — local, 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, 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

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, GigabitEthernet0/0
L 10.10.10.2/32 is directly connected, GigabitEthernet0/0
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1.10
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1.10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/1.20
L 192.168.20.1/32 is directly connected, GigabitEthernet0/1.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet0/1.30
L 192.168.30.1/32 is directly connected, GigabitEthernet0/1.30

Router#sh ospf neig
^
% Invalid input detected at ‘^’ marker.

Router#
01:26:44: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.12.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

Router#sh ip rout
Codes: L — local, 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, 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

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, GigabitEthernet0/0
L 10.10.10.2/32 is directly connected, GigabitEthernet0/0
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1.10
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1.10
O 192.168.11.0/24 [110/2] via 10.10.10.3, 00:00:32, GigabitEthernet0/0
O 192.168.12.0/24 [110/2] via 10.10.10.3, 00:00:32, GigabitEthernet0/0
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/1.20
L 192.168.20.1/32 is directly connected, GigabitEthernet0/1.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet0/1.30
L 192.168.30.1/32 is directly connected, GigabitEthernet0/1.30

Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/2
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up
en
% Ambiguous command: «en»
Router(config)#int gi 0/1.150
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.150, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.150, changed state to up
en do 150
Router(config-subif)#ip ad 192.168.150.1 255.255.255.0
Router(config-subif)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#
Router#
Router#sh ip ro
Codes: L — local, 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, 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

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, GigabitEthernet0/0
L 10.10.10.2/32 is directly connected, GigabitEthernet0/0
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1.10
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1.10
O 192.168.11.0/24 [110/2] via 10.10.10.3, 00:07:27, GigabitEthernet0/0
O 192.168.12.0/24 [110/2] via 10.10.10.3, 00:07:27, GigabitEthernet0/0
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/1.20
L 192.168.20.1/32 is directly connected, GigabitEthernet0/1.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet0/1.30
L 192.168.30.1/32 is directly connected, GigabitEthernet0/1.30
O 192.168.50.0/24 [110/3] via 10.10.10.3, 00:05:34, GigabitEthernet0/0
O 192.168.60.0/24 [110/3] via 10.10.10.3, 00:05:34, GigabitEthernet0/0
O 192.168.100.0/24 [110/2] via 10.10.10.3, 00:01:14, GigabitEthernet0/0
192.168.150.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.150.0/24 is directly connected, GigabitEthernet0/1.150
L 192.168.150.1/32 is directly connected, GigabitEthernet0/1.150
O 192.168.200.0/24 [110/3] via 10.10.10.3, 00:02:49, GigabitEthernet0/0
O 192.168.201.0/24 [110/3] via 10.10.10.3, 00:02:26, GigabitEthernet0/0

Router#
————[R1]————
Press RETURN to get started!

Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

Router(config-if)#ip ad
Router(config-if)#ip address 10.10.10.3 255.255.255.0
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

Router(config-if)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#
Router#ping 10.10.10.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/8/34 ms

Router#ping 192.168.10.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
…..
Success rate is 0 percent (0/5)

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi 0/1.11
Router(config-subif)#en do 11
Router(config-subif)#ip ad 192.168.11.1 255.255.255.0
Router(config-subif)#int gi 0/1.12
Router(config-subif)#en do 12
Router(config-subif)#ip ad 192.168.12.1 255.255.255.0
Router(config-subif)#int gi 0/2
Router(config-if)#ip ad 10.10.10.4 255.255.255.0
% 10.10.10.0 overlaps with GigabitEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/2
Router(config-if)#no shutdown
% 10.10.10.0 overlaps with GigabitEthernet0/0
GigabitEthernet0/2: incorrect IP address assignment
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up

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

Router(config-if)#
Router(config-if)#
Router(config-if)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#sh ip ro
Codes: L — local, 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, 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

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.10.10.0/24 is directly connected, GigabitEthernet0/0
is directly connected, GigabitEthernet0/2
L 10.10.10.3/32 is directly connected, GigabitEthernet0/0
L 10.10.10.4/32 is directly connected, GigabitEthernet0/2

Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

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

%LINK-5-CHANGED: Interface GigabitEthernet0/1.11, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.11, changed state to up

%LINK-5-CHANGED: Interface GigabitEthernet0/1.12, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.12, changed state to up

Router con0 is now available

Press RETURN to get started.

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#net 192.168.0.0 0.0.255.255 area 0
Router(config-router)#net 10.10.10.0 0.255.255.255 area 0
Router(config-router)#
01:07:47: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.30.1 on GigabitEthernet0/0 from LOADING to FULL, Loading Done

Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#sh ip rout
Codes: L — local, 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, 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

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.10.10.0/24 is directly connected, GigabitEthernet0/0
is directly connected, GigabitEthernet0/2
L 10.10.10.3/32 is directly connected, GigabitEthernet0/0
L 10.10.10.4/32 is directly connected, GigabitEthernet0/2
O 192.168.10.0/24 [110/2] via 10.10.10.2, 00:00:12, GigabitEthernet0/0
192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.11.0/24 is directly connected, GigabitEthernet0/1.11
L 192.168.11.1/32 is directly connected, GigabitEthernet0/1.11
192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.12.0/24 is directly connected, GigabitEthernet0/1.12
L 192.168.12.1/32 is directly connected, GigabitEthernet0/1.12
O 192.168.20.0/24 [110/2] via 10.10.10.2, 00:00:12, GigabitEthernet0/0
O 192.168.30.0/24 [110/2] via 10.10.10.2, 00:00:12, GigabitEthernet0/0

Router#
01:09:29: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.60.1 on GigabitEthernet0/2 from LOADING to FULL, Loading Done

Router#en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi 0/1.500
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1.500, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1.500, changed state to up
en do 500
Router(config-subif)#ip ad 192.168.100.1 255.255.255.0
Router(config-subif)#
————[R2]————
Press RETURN to get started.

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#route ospf 1
Router(config-router)#net 192.168.0.0 0.0.255.255 area 0
Router(config-router)#net 10.10.10.0 0.255.255.255 area 0
Router(config-router)#
01:04:51: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.12.1 on GigabitEthernet0/2 from LOADING to FULL, Loading Done

Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#sh ip rou
Codes: L — local, 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, 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

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.10.0/24 is directly connected, GigabitEthernet0/2
L 10.10.10.5/32 is directly connected, GigabitEthernet0/2
169.193.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 169.193.70.0/24 is directly connected, GigabitEthernet0/1.70
L 169.193.70.1/32 is directly connected, GigabitEthernet0/1.70
O 192.168.10.0/24 [110/3] via 10.10.10.4, 00:00:04, GigabitEthernet0/2
O 192.168.11.0/24 [110/2] via 10.10.10.4, 00:00:04, GigabitEthernet0/2
O 192.168.12.0/24 [110/2] via 10.10.10.4, 00:00:04, GigabitEthernet0/2
O 192.168.20.0/24 [110/3] via 10.10.10.4, 00:00:04, GigabitEthernet0/2
O 192.168.30.0/24 [110/3] via 10.10.10.4, 00:00:04, GigabitEthernet0/2
192.168.50.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.50.0/24 is directly connected, GigabitEthernet0/1.50
L 192.168.50.1/32 is directly connected, GigabitEthernet0/1.50
192.168.60.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.60.0/24 is directly connected, GigabitEthernet0/1.60
L 192.168.60.1/32 is directly connected, GigabitEthernet0/1.60

Router#sh ospf data
^
% Invalid input detected at ‘^’ marker.

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#sh ospf data
^
% Invalid input detected at ‘^’ marker.

Router(config)#sh ?
% Unrecognized command
Router(config)#show ?
% Unrecognized command
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#
Router#
Router#sh?
show
Router#sh ?
aaa Show AAA values
access-lists List access lists
arp Arp table
cdp CDP information
class-map Show QoS Class Map
clock Display the system clock
controllers Interface controllers status
crypto Encryption module
debugging State of each debugging option
dhcp Dynamic Host Configuration Protocol status
dot11 IEEE 802.11 show information
file Show filesystem information
flash: display information about flash: file system
flow Flow information
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
license Show license information
line TTY line information
lldp LLDP information
logging Show the contents of logging buffers
login Display Secure Login Configurations and State
mac-address-table MAC forwarding table
ntp Network time protocol
parser Show parser commands
policy-map Show QoS Policy Map
pppoe PPPoE information
privilege Show current privilege level
processes Active process statistics
protocols Active network routing protocols
queue Show queue contents
queueing Show queueing configuration
running-config Current operating configuration
secure Show secure image and configuration archive
sessions Information about Telnet connections
snmp snmp statistics
spanning-tree Spanning tree topology
ssh Status of SSH server connections
standby standby configuration
startup-config Contents of startup configuration
storm-control Show storm control configuration
tcp Status of TCP connections
tech-support Show system information for Tech-Support
terminal Display terminal configuration parameters
users Display information about terminal lines
version System hardware and software status
vlan-switch VTP VLAN status
vtp Configure VLAN database
zone Zone Information
zone-pair Zone pair information
Router#sh ip protoc

Routing Protocol is «ospf 1»
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.60.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.0.0 0.0.255.255 area 0
10.0.0.0 0.255.255.255 area 0
Routing Information Sources:
Gateway Distance Last Update
192.168.12.1 110 00:01:13
192.168.30.1 110 00:02:55
192.168.60.1 110 00:01:03
Distance: (default is 110)

Router#sh ip neig
^
% Invalid input detected at ‘^’ marker.

Router#sh ospf neig
^
% Invalid input detected at ‘^’ marker.

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gi 0/2.200
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2.200, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2.200, changed state to up

Router(config-subif)#en do 200
Router(config-subif)#ip ad 192.168.200.1 255.255.255.0
Router(config-subif)#int gi 0/2.201
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2.201, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2.201, changed state to up
en do 201
Router(config-subif)#ip ad 192.168.201.1 255.255.255.0
Router(config-subif)#
Router(config-subif)#end
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/2
Router(config-if)#
%SYS-5-CONFIG_I: Configured from console by console

Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up



0




Posted by Mark Jones HPRA 2013-09-19T16:18:32Z

I have a Cisco 3945 ISR with a 48 port switch attached to it (service module). For the life of me, I can’t get the switch ports to talk with the router. It’s completely separate. I figured it would be the easiest thing ever since this router is made to have switch ports added to it, but I just can’t get it. 

I have read just about everything Cisco has available, all to no avail. 

Anyone ever done this and have any tips?

29 Replies

  • What do you mean? Can the router not see the module itself? What happens when you issue the «show inventory» command? Can you see the module?

    If you issue «show diag» do you see the card?


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    Yea I can see the card, give it an IP and session in to it. 

    What I can’t do is ping across the two. I can’t ping from the router to the switch or vice versa. Anything plugged in to the switch ports cannot ping the router. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    I’m setting it up new. I don’t need the switch to do anything fancy at all, I just need the switch to be wide open going in to the router. So anything connected to the switch has access to the router. 


    Was this post helpful?
    thumb_up
    thumb_down

  • A port on the etherswitch needs to be L3 and be on the same subnet as the host interface on the router. You’ll have to add a default route in the etherswitch, pointing to the host interface of the router. This will allow anything connected to the etherswitch the ability to talk outside the subnet/VLAN configured on the etherswitch.  And you need to configure a route on the router to the LAN on the etherswitch.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    That’s what I’ve been doing but I can’t get it to go. I can get it to ping using these instructions:

    http:/ Opens a new window/docwiki.cisco.com/wiki/EtherSwitch_Service_Module_(NME)_Initial_Configuration_Example Opens a new window

    But when I plug a PC in to the switch, I can’t ping the router. 

    I hate this thing. We bought it because the switch was integrated in to the router, and now I wish we would have just got a router and switch separate. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Can you ping the SVI from the PC connected to the switch?


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    Not with the IP I give the PC (which is based off of the router). 


    Was this post helpful?
    thumb_up
    thumb_down

  • Aahh so the gateway for the PC is on the router and not the switch…

    You may need to add a static route on the switch for the subnet the PC is living in and point it to the gateway IP on the router…


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Talk2 Jimmy

    I guess Im not understanding.

    TO get into the module —

    service-module gigabitethernet1/0 session

    You need to configure a port on the router

    interface gigabitethernet 1/0
    ip address 10.1.1.1 255.255.255.0
    no shutdown

    then connect to the esm
    service-module gigabitethernet1/0 session

    configure a port on the esm
    interface gigabitethernet 1/0/2
    no switchport
    ip address 10.1.1.2 255.255.255.0
    no shutdown

    then you can configure you access

    console 0
    password
    exec-timeout 30
    vty 0 4
    password
    login


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    Yea I can get in to the switch and everything, no problem there. I’m just having a hrad time making the switch a simple switch. I just want anything plugged in to the switch, to talk to the router. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    Ok, I’m so close I can taste it. Here’s my setup:

    Router: 172.16.100.1 255.255.255.0

    Switch: 10.0.0.1 255.255.255.0 (etherswitch)

    int gi0/52: 10.0.0.2 255.255.255.0 (port connected internally Layer 3)

    vlan1: 10.0.50.1 255.255.255.0 (I don’t want any other Vlans)

    From the router, I can ping the everything on the switch (10.0.0.1, 10.0.0.2, and 10.0.50.1)

    From the switch, I can ping 172.16.100.1

    When I plug a PC in  to the switch, and give it an IP of 172.16.100.11, 255.255.255.0 DG: 172.16.100.1…………..

    I cannot ping 172.16.100.1

    I can’t ping anything on the switch either. 

    I put a route in the switch as follows: ip route 172.16.100.0 255.255.255.0 172.16.100.1

    That didn’t help.

    Any clues?


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Talk2 Jimmy

    Can you do a show cdp neighbors on router and switch — this will show us what ports you have configured for your service module connection.

    The service module connection ports are not switch ports. They should be configured on the same subnet.

    If you want to configure VLANs on your switch you can do this

    add vlan
    vlan 100, 200, 300 ,400
    then configure vlan interface

    interface vlan 100
    ip address 172.16.100.1 255.255.255.0
    no shutdown

    interface vlan 200
    ip address 172.16.200.1 255.255.255.0

    to dynamically route your traffic- you can do it with RIP

    router rip
    version 2

    network 172.16.200.0
    network 172.16.100.0

    no auto-summary
     

     
    netw


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    For some reason, If I change any of the IP addresses listed above, nothing works again. 

    Which IP for the switch do I need to change for it to be on the same subnet? (10.0.0.1, or 10.0.0.2??)

    Sorry for the basic questions but I just can’t figure this thing out. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Matt

    ghost chili

    Cisco Expert

    • check
      104
      Best Answers
    • thumb_up
      198
      Helpful Votes

    You’ve configured the switch to connect to the router at Layer 3 — routing.

    But then you are trying to make a layer 2 conneciton.

    From memory the ES only connects at Layer 3 to the actual router. So all devices need to be in a different subnet to the router.


    Was this post helpful?
    thumb_up
    thumb_down

  • It can only do Layer 3. You’d have to be able to put the router host interface in a VLAN and that is not possible using the etherswitch.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Aaron Vinyard

    Mark Jones HPRA wrote:

    Ok, I’m so close I can taste it. Here’s my setup:

    Router: 172.16.100.1 255.255.255.0

    Switch: 10.0.0.1 255.255.255.0 (etherswitch)

    int gi0/52: 10.0.0.2 255.255.255.0 (port connected internally Layer 3)

    vlan1: 10.0.50.1 255.255.255.0 (I don’t want any other Vlans)

    From the router, I can ping the everything on the switch (10.0.0.1, 10.0.0.2, and 10.0.50.1)

    From the switch, I can ping 172.16.100.1

    When I plug a PC in  to the switch, and give it an IP of 172.16.100.11, 255.255.255.0 DG: 172.16.100.1…………..

    I cannot ping 172.16.100.1

    I can’t ping anything on the switch either. 

    I put a route in the switch as follows: ip route 172.16.100.0 255.255.255.0 172.16.100.1

    That didn’t help.

    Any clues?

    The computer has no route to anything.  Yes, it has an IP in the subnet of the router, but it has no route to it.  Even though its DG is that of the router, it has no logical path to the router.

    There are a few options here.  Just to clarify, is the DG on the three switch IPs (.0.1, .0.2, .50.1) all 172.16.100.1?  The computer is L2 connected to the switch.  It needs to be in the VLAN of the switch, so 10.0.50.2.  Then the VLAN needs to have a DG of 172.16.100.1.

    I’m not sure what you are trying to test by having the computer with that IP.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Talk2 Jimmy

    I dont know if you have vlans on your router but you could try this- below .Or post your config so we can help you better.

    interface GigabitEthernet1/0/2
    description Trunk to router
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan all
    switchport mode trunk


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    I don’t have an interface gi1/0/2

    I just want it to be a layer 2 switch, but as mentioned above, it must be layer 3. 

    I will post config here in a minute. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    If I try to put it in the same subnet as the router, I get errors that say it can’t be in the same subnet… 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    I have gi 0/1 set to 172.16.100.1 255.255.255.0

    If I try to set gi 4/0 (my etherswitch) to 172.16.100.2 255.255.255.0

    It says: % 172.16.100.0 overlaps with GigabitEthernet0/1

    So how am I supposed to put them in the same subnet, if it won’t let me? I hate this thing. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Aaron Vinyard

    I don’t think that you can put them in the same subnet.  Each interface is a separate router interface.  But the next hop from the computer must be a network to which the computer can talk, IE in the same subnet.  Thus the computer needs an IP in a VLAN that has the DG setup as the router interface.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    Router config:

    HPRA-3945#sh conf
    Using 1781 out of 262136 bytes
    !
    ! Last configuration change at 00:19:45 UTC Sat Sep 21 2013
    version 15.2
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname HPRA-3945
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$L26a$iXEEbmvtDsA4pKPpG3doQ.
    enable password ******
    !
    no aaa new-model
    !
    !
    !
    ip cef
    !
    !
    !
    !
    !
    !
    no ipv6 cef
    !
    multilink bundle-name authenticated
    !
    !
    license udi pid C3900-SPE150/K9 sn FOC17232L4T
    hw-module sm 4
    !
    !
    !
    !
    redundancy
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    interface Embedded-Service-Engine0/0
    no ip address
    shutdown
    !
    interface GigabitEthernet0/0
    no ip address
    shutdown
    duplex auto
    speed auto
    !
    interface GigabitEthernet0/1
    ip address 172.16.100.1 255.255.255.0
    duplex auto
    speed auto
    no mop enabled
    !
    interface GigabitEthernet0/2
    no ip address
    duplex auto
    speed auto
    !
    interface GigabitEthernet4/0
    ip address 10.0.0.1 255.255.255.0
    !
    interface GigabitEthernet4/1
    description Internal switch interface connected to Service Module
    no ip address
    !
    interface Vlan1
    no ip address
    !
    ip forward-protocol nd
    !
    no ip http server
    no ip http secure-server
    !
    ip route 172.16.100.0 255.255.255.0 10.0.0.2
    ip route 172.16.100.2 255.255.255.255 10.0.0.2
    !
    !
    !
    snmp-server community public RO
    snmp-server enable traps entity-sensor threshold
    !
    control-plane
    !
    !
    !
    line con 0
    line aux 0
    line 2
    no activation-character
    no exec
    transport preferred none
    transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
    stopbits 1
    line 259
    no activation-character
    no exec
    transport preferred none
    transport input all
    transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
    stopbits 1
    flowcontrol software
    line vty 0 4
    password ******
    login
    transport input all
    !
    scheduler allocate 20000 1000
    !
    end

    Switch config:

    HPRA-3945-SWITCH#sh conf
    Using 3076 out of 524288 bytes
    !
    ! Last configuration change at 19:53:39 UTC Mon Sep 23 2013
    ! NVRAM config last updated at 19:53:41 UTC Mon Sep 23 2013
    !
    version 12.2
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname HPRA-3945-SWITCH
    !
    boot-start-marker
    boot-end-marker
    !
    enable secret 5 $1$0zI8$T7t5m4rv8ZdN9aIHpexHE/
    enable password ******
    !
    !
    !
    no aaa new-model
    system mtu routing 1500
    authentication mac-move permit
    ip subnet-zero
    ip routing
    !
    !
    !
    !
    crypto pki trustpoint TP-self-signed-1467404544
    enrollment selfsigned
    subject-name cn=IOS-Self-Signed-Certificate-1467404544
    revocation-check none
    rsakeypair TP-self-signed-1467404544
    !
    !
    crypto pki certificate chain TP-self-signed-1467404544
    certificate self-signed 01 nvram:IOS-Self-Sig#3434.cer
    !
    !
    !
    spanning-tree mode pvst
    spanning-tree portfast default
    spanning-tree etherchannel guard misconfig
    spanning-tree extend system-id
    !
    vlan internal allocation policy ascending
    !
    !
    !
    interface GigabitEthernet0/1
    !
    interface GigabitEthernet0/2
    !
    interface GigabitEthernet0/3
    !
    interface GigabitEthernet0/4
    !
    interface GigabitEthernet0/5
    !
    interface GigabitEthernet0/6
    !
    interface GigabitEthernet0/7
    !
    interface GigabitEthernet0/8
    !
    interface GigabitEthernet0/9
    !
    interface GigabitEthernet0/10
    !
    interface GigabitEthernet0/11
    !
    interface GigabitEthernet0/12
    !
    interface GigabitEthernet0/13
    !
    interface GigabitEthernet0/14
    !
    interface GigabitEthernet0/15
    !
    interface GigabitEthernet0/16
    !
    interface GigabitEthernet0/17
    !
    interface GigabitEthernet0/18
    !
    interface GigabitEthernet0/19
    !
    interface GigabitEthernet0/20
    !
    interface GigabitEthernet0/21
    !
    interface GigabitEthernet0/22
    !
    interface GigabitEthernet0/23
    !
    interface GigabitEthernet0/24
    !
    interface GigabitEthernet0/25
    !
    interface GigabitEthernet0/26
    !
    interface GigabitEthernet0/27
    !
    interface GigabitEthernet0/28
    !
    interface GigabitEthernet0/29
    !
    interface GigabitEthernet0/30
    !
    interface GigabitEthernet0/31
    !
    interface GigabitEthernet0/32
    !
    interface GigabitEthernet0/33
    !
    interface GigabitEthernet0/34
    !
    interface GigabitEthernet0/35
    !
    interface GigabitEthernet0/36
    !
    interface GigabitEthernet0/37
    !
    interface GigabitEthernet0/38
    !
    interface GigabitEthernet0/39
    !
    interface GigabitEthernet0/40
    !
    interface GigabitEthernet0/41
    !
    interface GigabitEthernet0/42
    !
    interface GigabitEthernet0/43
    !
    interface GigabitEthernet0/44
    !
    interface GigabitEthernet0/45
    !
    interface GigabitEthernet0/46
    !
    interface GigabitEthernet0/47
    !
    interface GigabitEthernet0/48
    !
    interface GigabitEthernet0/49
    !
    interface GigabitEthernet0/50
    !
    interface GigabitEthernet0/51
    !
    interface GigabitEthernet0/52
    no switchport
    ip address 10.0.0.2 255.255.255.0
    !
    interface Vlan1
    description Connection to Router
    ip address 172.16.100.2 255.255.255.0
    !
    ip default-gateway 172.16.100.1
    ip classless
    ip route 0.0.0.0 0.0.0.0 10.0.0.1
    ip http server
    ip http secure-server
    !
    ip sla enable reaction-alerts
    !
    !
    line con 0
    speed 115200
    flowcontrol software
    line vty 0 4
    password ******
    login
    line vty 5 15
    password ******
    login
    !
    end


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    Where it stands right now, from the ROUTER, I can ping 172.16.100.2, 10.0.0.2, and 10.0.0.1

    I have a PC connected to port 15 of the switch, with an IP of 172.16.100.11 255.255.255.0 DG 172.16.100.1

    I cannot ping 172.16.100.11 from the router. 

    From the SWITCH, I cannot ping 172.16.100.1, but can ping 172.16.100.11 and of course 10.0.0.1, 10.0.0.2, and 172.16.100.2

    Idk what the deal is… but it seems really simple…


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Talk2 Jimmy

    interface GigabitEthernet4/1
    description Internal switch interface connected to Service Module
    switchport mode trunk

    interface GigabitEthernet0/52
    switchport mode trunk

    tested — it works on a 2921 with 16port switch.-

    Set both interfaces to trunk-

    Int vlan1 on the router 10.0.0.1 255.255.255.0

    int vlan 1 on the switch 10.0.0.2 255.255.255.0

    %SYS-5-CONFIG_I: Configured from console by console
    Router#ping 10.0.0.2
    Success rate is 100 percent (5/5), round-trip min/avg/max = 15/15/16 ms


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    This is what I get:

    HPRA-3945-SWITCH#config t
    Enter configuration commands, one per line.  End with CNTL/Z.
    HPRA-3945-SWITCH(config)#int gi0/52
    HPRA-3945-SWITCH(config-if)#switchport mode trunk
    Command rejected: Gi0/52 not a switching port.
    HPRA-3945-SWITCH(config-if)#


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Mark Jones

    I just put a patch cable from port 1 on the switch to 0/1 on the router. Works just like a layer 2 switch now. 

    Screw all the complicated stuff. 


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Chukwuebuka Ani

    hello all

    After upgrading my 3945 IOS, an error message keepon appering no sreloc session


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Corinne Johnson

    I had to use BDI’s to get this to work on a 4331.


    Was this post helpful?
    thumb_up
    thumb_down

  • I’m sure they figured it out in the intervening 18 months… =:-o


    Was this post helpful?
    thumb_up
    thumb_down

Read these next…

  • Curated WINDOWS 10 "glitch" - file explorer

    WINDOWS 10 «glitch» — file explorer

    Windows

    Hi.I have been experiencing a black line (glitch) on my file explorer which comes for milliseconds then it goes away. See screen grab. Is there anyone who has experienced such and how were they able to solve it?Thank you.

  • Curated Are you updating workstations to Windows 11?

    Are you updating workstations to Windows 11?

    Windows

    Has anyone started updating workstations on a AD domain to Windows 11? what type of issues are you facing?What is the user reaction been?Thanks!

  • Curated Snap! -- Psyche Probe, DIY Gene Editing, RaiBo, AI handwriting, Metric Pirates

    Snap! — Psyche Probe, DIY Gene Editing, RaiBo, AI handwriting, Metric Pirates

    Spiceworks Originals

    Your daily dose of tech news, in brief.

    Welcome to the Snap!

    Flashback: January 27, 1880: Thomas Edison receives patent for the Electric Lamp. (Read more HERE.)

    Bonus Flashback: January 27, 1967: Apollo 1 Tragedy (Read more HERE.)

    You …

  • Curated NEC Inmail Email doesn't Change

    NEC Inmail Email doesn’t Change

    Collaboration

    Hey Everyone,Recently a client of mine wanted to change the email to their QA extension to her email as to help keep voicemails consolidated instead of spread out among different emails. Normally this wouldn’t be a huge deal. Logged in to to Webpro, hoppe…

  • Curated I inherited some really cool equipment. I just have no clue how to use it!

    I inherited some really cool equipment. I just have no clue how to use it!

    Hardware

    So I’ve got some switches, and some servers. The switches seem pretty straight forward, plug in packet go zoom, but I have no clue how these servers work. They’re headless rack servers. I know there must be a way to get some kind of UI going with a monito…

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Overclocking failed ошибка при загрузке
  • Over ошибка на весах