Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- apt update 1&>/dev/null
- yes | apt install zsh lshw 1&>/dev/null
- wget -qO /root/.zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
- lshw -c network -businfo
- lshw -c network -businfo | more
- ip link set up eth0
- ip link set up eth1
- mii-tool | grep -E 'eth[01]'
- ip addr add 132.227.16.1/20 dev eth0
- ip addr add 132.227.32.1/20 dev eth1
- ip addr | grep -E 'eth[01]'
- sysctl -w 'net.ipv4.ip_forward=1'
- netstat -rn
- ip route add 132.227.0.0/20 via 132.227.16.2 # SR1
- ip route add 132.227.48.0/20 via 132.227.32.2 # SR4
- ip route add 132.227.64.0/20 via 132.227.32.2 # SR5
- ip route add 132.227.80.0/20 via 132.227.16.3 # SR6
- ip route add 132.227.96.0/20 via 132.227.16.3 # SR7
- ip route add 132.227.112.0/20 via 132.227.16.2 # SR8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement