2017-01-29 13:33:33 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-06-21 12:40:28 -05:00
|
|
|
ifdown --force eth0
|
2018-04-01 23:36:43 -05:00
|
|
|
|
2017-11-07 01:40:27 -06:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/interfaces.j2 > /etc/network/interfaces
|
2017-11-05 01:31:29 -06:00
|
|
|
|
2017-06-08 03:50:04 -05:00
|
|
|
[ -f /var/run/dhclient.eth0.pid ] && kill `cat /var/run/dhclient.eth0.pid` && rm -f /var/run/dhclient.eth0.pid
|
2017-10-16 19:36:21 -05:00
|
|
|
|
|
|
|
systemctl restart networking
|
|
|
|
|
2017-06-07 12:37:49 -05:00
|
|
|
ifdown lo && ifup lo
|