Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sirishagude opened this issue Oct 29, 2019 · 2 comments
Open

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

Sirishagude opened this issue Oct 29, 2019 · 2 comments
Assignees

Comments

@Sirishagude
Copy link

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)#

@justinejose91
Copy link

Will discuss internally, and will get back.

@joyas-joseph
Copy link
Collaborator

@Sirishagude Why do you think this is a bug?

root@sonic:# config interface ip add Ethernet4 1.1.1.1/24
root@sonic:
# config interface ip add Ethernet4 2.1.1.1/24
root@sonic:#
root@sonic:
# ip address show dev Ethernet4
15: Ethernet4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 9100 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 90:b1:1c:f4:9b:a6 brd ff:ff:ff:ff:ff:ff
inet 1.1.1.1/24 scope global Ethernet4
valid_lft forever preferred_lft forever
inet 2.1.1.1/24 scope global Ethernet4
valid_lft forever preferred_lft forever
root@sonic:~#

dell-engops pushed a commit that referenced this issue Oct 28, 2022
* RBAC CLI - Updating the access tag roles in XML

* Moving the config_session changes to a new PR to discuss and test further
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants