Skip to content

DELL_CLI: Able to config multiple ip's to the same interface #211

@Sirishagude

Description

@Sirishagude

Able to config multiple ip's on single interface,please find the log below

sonic(config)# interface Ethernet 122
sonic(conf-if-Ethernet122)# do show interface Ethernet 122
Ethernet122 is up, line protocol is up
Hardware is Eth
Interface index is 30
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
IP MTU 9100 bytes
LineSpeed 10GB, Auto-negotiation off
Input statistics:
0 packets, 0 octets
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
Output statistics:
136 packets, 31688 octets
136 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
sonic(conf-if-Ethernet122)# ip address 10.0.0.1/24
Success
sonic(conf-if-Ethernet122)# ip address 11.1.1.2/24
Success
sonic(conf-if-Ethernet122)# ip address 192.168.1.2/24
%Error: IP 192.168.1.2/24 overlaps with IP 192.168.1.4/24 of Interface Ethernet121
sonic(conf-if-Ethernet122)# do show interface Ethernet 122

Ethernet122 is up, line protocol is up
Hardware is Eth
Interface index is 30
IPV4 address is 10.0.0.1/24,11.1.1.2/24
Mode of IPV4 address assignment: MANUAL
Mode of IPV6 address assignment: not-set
IP MTU 9100 bytes
LineSpeed 10GB, Auto-negotiation off
Input statistics:
0 packets, 0 octets
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
Output statistics:
138 packets, 32154 octets
138 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
sonic(conf-if-Ethernet122)# ip address 12.16.1.2/24
Success
sonic(conf-if-Ethernet122)# ip address 191.16.1.2/24
Success
sonic(conf-if-Ethernet122)# do show interface Ethernet 122

Ethernet122 is up, line protocol is up
Hardware is Eth
Interface index is 30
IPV4 address is 10.0.0.1/24,11.1.1.2/24,12.16.1.2/24,191.16.1.2/24
Mode of IPV4 address assignment: MANUAL
Mode of IPV6 address assignment: not-set
IP MTU 9100 bytes
LineSpeed 10GB, Auto-negotiation off
Input statistics:
0 packets, 0 octets
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
Output statistics:
139 packets, 32387 octets
139 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
sonic(conf-if-Ethernet122)#

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions