Advertisement
Mayur_Pipaliya

junk - ifconfig

Apr 23rd, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. sudo ifconfig eth0 192.168.1.123 netmask 255.255.255.0 broadcast 192.168.1.255
  2. sudo ifconfig eth0 up
  3. sudo service network restart; sudo service networking restart
  4. sudo route add default gw 192.168.1.1 eth0
  5.  
  6.  
  7. sudo ifconfig -a | grep Bcast; sudo route -n
  8. ping 192.168.1.1
  9. ping 8.8.8.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement