$ cd /usr/local/sbin/
$ szu_network=https://gist.github.com/tonyseek/5125314/raw
$ sudo wget $szu_network/setup-szu-network.sh -O setup-szu-network.sh
$ sudo wget $szu_network/login-szu-ipv6.py -O login-szu-ipv6.py
$ sudo chmod +x setup-szu-network.sh
$ sudo chmod +x login-szu-ipv6.py
- The Internet has been connected to
eth0
- The internal network has been connected to
eth1
You should ensure eth0
and eth1
up both.
$ ip addr show
$ ipconfig # another way
Then you can use this script.
$ sudo setup-szu-network.sh eth1
Now the Internet and the internal network of Shenzhen University could be accessible both.
$ login-szu-ipv6.py -u 123456