getipman.sh 152 B

12345678
  1. #!/bin/sh
  2. # Setting IP you want.
  3. sudo ip addr add 192.168.0.120/24 dev enp3s0
  4. # Setting up IP of gateaway.
  5. sudo ip route add default via 192.168.0.1