Advertisement
marwanpro

asr6

Mar 28th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. apt update 1&>/dev/null
  4. yes | apt install zsh lshw 1&>/dev/null
  5. wget -qO /root/.zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
  6.  
  7. lshw -c network -businfo
  8. lshw -c network -businfo | more
  9.  
  10. ip link set up eth0
  11. ip link set up eth1
  12.  
  13. mii-tool | grep -E 'eth[01]'
  14.  
  15. ip addr add 132.227.16.1/20 dev eth0
  16. ip addr add 132.227.32.1/20 dev eth1
  17.  
  18. ip addr | grep -E 'eth[01]'
  19.  
  20. sysctl -w 'net.ipv4.ip_forward=1'
  21.  
  22. netstat -rn
  23.  
  24. ip route add 132.227.0.0/20 via 132.227.16.2 # SR1
  25. ip route add 132.227.48.0/20 via 132.227.32.2 # SR4
  26. ip route add 132.227.64.0/20 via 132.227.32.2 # SR5
  27. ip route add 132.227.80.0/20 via 132.227.16.3 # SR6
  28. ip route add 132.227.96.0/20 via 132.227.16.3 # SR7
  29. ip route add 132.227.112.0/20 via 132.227.16.2 # SR8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement