Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- iface="eth1x1"
- iface_new="eth1x2"
- iface_temp="eth1x9"
- bridge="br1"
- brctl delif $bridge $iface
- sleep 2
- ifconfig $iface 0.0.0.0 down
- ifconfig $iface_new 0.0.0.0 down
- sleep 2
- ip link $iface set name $iface_temp
- sleep 2
- ip link $iface_new set name $iface
- sleep 2
- ifconfig $iface 0.0.0.0 up
- sleep 2
- brctl addif $bridge $iface
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement