Skip to content

Commit

Permalink
[smart-switch][dpu] Do not run dhclient on the eth0 interface. (#21062)
Browse files Browse the repository at this point in the history
[smart-switch][dpu] Do not run dhclient on the eth0 interface.
  • Loading branch information
oleksandrivantsiv authored and mssonicbld committed Dec 11, 2024
1 parent 08f1083 commit 2ad4690
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/image_config/interfaces/interfaces.j2
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ iface {{ name }} {{ 'inet' if prefix | ipv4 else 'inet6' }} static
{# TODO: COPP policy type rules #}
{% endfor %}
{% else %}
{% if not (DEVICE_METADATA['localhost']['subtype'] == 'SmartSwitch' and DEVICE_METADATA['localhost']['switch_type'] == 'dpu') %}
auto eth0
iface eth0 inet dhcp
metric 202
Expand All @@ -142,6 +143,7 @@ iface eth0 inet6 dhcp
down sysctl net.ipv6.conf.eth0.accept_ra=0
{% endif %}
{% endif %}
{% endif %}
#
source /etc/network/interfaces.d/*
#
Expand Down

0 comments on commit 2ad4690

Please sign in to comment.