Yi Tseng | baab424 | 2018-02-11 16:50:03 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Reset VLANs |
Yi Tseng | bc6bfe5 | 2018-02-12 18:21:53 -0800 | [diff] [blame] | 4 | vconfig rem eth0.1 |
Yi Tseng | baab424 | 2018-02-11 16:50:03 -0800 | [diff] [blame] | 5 | |
| 6 | set -e -x |
| 7 | |
| 8 | # Set VLANs |
Yi Tseng | bc6bfe5 | 2018-02-12 18:21:53 -0800 | [diff] [blame] | 9 | vconfig add eth0 1 |
Yi Tseng | baab424 | 2018-02-11 16:50:03 -0800 | [diff] [blame] | 10 | |
Yi Tseng | bc6bfe5 | 2018-02-12 18:21:53 -0800 | [diff] [blame] | 11 | ifconfig eth0 up |
Yi Tseng | baab424 | 2018-02-11 16:50:03 -0800 | [diff] [blame] | 12 | |
| 13 | # Internal (for management and MME2) |
Yi Tseng | bc6bfe5 | 2018-02-12 18:21:53 -0800 | [diff] [blame] | 14 | ifconfig eth0.1 up |
| 15 | ifconfig eth0.1 10.6.0.200/24 up |
| 16 | |
| 17 | # Slice1 (Leaf1) |
| 18 | ip addr add 118.0.0.10/24 dev eth0 |
| 19 | ip addr add 119.0.0.10/24 dev eth0 |
| 20 | |
| 21 | # route to slice 2 and ARM (140.0.0.2/24 and 150.0.0.10/24) |
| 22 | ip route add 0.0.0.0/0 via 119.0.0.254 |