Yi Tseng | baab424 | 2018-02-11 16:50:03 -0800 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Reset VLANs |
| 4 | vconfig rem eth0.100 |
| 5 | vconfig rem eth0.200 |
| 6 | |
| 7 | set -e -x |
| 8 | |
| 9 | # Set VLANs |
| 10 | vconfig add eth0 100 |
| 11 | vconfig add eth0 200 |
| 12 | |
| 13 | # Slice1 (Leaf1) |
| 14 | ifconfig eth0.100 up |
| 15 | ip addr add 118.0.0.10/24 dev eth0.100 |
| 16 | ip addr add 119.0.0.10/24 dev eth0.100 |
| 17 | |
| 18 | # Slice2 (Leaf2) |
| 19 | ifconfig eth0.200 up |
| 20 | ifconfig eth0.200 hw ether 00:aa:00:00:00:02 |
| 21 | ipaddr add 140.0.0.10/24 dev eth0.200 |
| 22 | |
| 23 | # Internal (for management and MME2) |
| 24 | ifconfig eth0 10.6.0.200/24 up |