I have a Cisco 1841 router with
Fa0/0,
Fa0/1 and
Se0/0/0:0 interfaces.
Fa0/0 is facing the LAN. At the moment WAN interface is
Se0/0/0:0. It has following configuration:
interface Serial0/0/0:0
ip address 10.10.10.165 255.255.255.254 secondary
ip address 192.168.1.158 255.255.255.252
encapsulation ppp
end
I would like to preconfigure interface
Fa0/1 with the same parameters as the
Serial0/0/0:0 has.
Fa0/1 line protocol is down so it's not present in the routing table. The idea is to disconnect
Serial0/0/0:0 and then connect
Fa0/1. However, looks like IOS does not allow such operation:
C1841#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C1841(config)#int Fa0/1
C1841(config-if)#ip address 10.10.10.165 255.255.255.254 secondary
% Warning: use /31 mask on non point-to-point interface cautiously
% 10.10.10.164 is assigned as a secondary address on Serial0/0/0:0
C1841(config-if)#ip address 10.10.10.158 255.255.255.252
% 10.10.10.156 overlaps with Serial0/0/0:0
C1841(config-if)#end
C1841#sh run int Fa0/1
Building configuration...
Current configuration : 73 bytes
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
end
C1841#
As long as the line protocol of
Fa0/1 is down it does not appear in routing table so there should be no conflict and technically this should be possible or am I missing something here? Is there a way/technique to configure two interfaces with identical IP address configuration while line protocol is up only one port at the time?