Advertisement
voyeg3r

two-ip-address-on-the-same-network-card

Sep 17th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. ==como colocar dois ips na mesma interface==
  2.  
  3.     auto eth0
  4.     iface eth0 inet static
  5.     address 10.0.0.5  #ip da rede
  6.     netmask 255.255.254.0 #mascara de rede
  7.     network 10.0.0.0 #endereço da rede
  8.     broadcast 10.0.1.255 #endereço de broadcast
  9.     gateway 10.0.0.1 #gateway da rede
  10.  
  11.     auto eth0:1
  12.     iface eth0:1 inet static
  13.     name Ethernet alias LAN card
  14.     address 192.168.16.2
  15.     netmask 255.255.255.0
  16.     network 192.168.16.0
  17.     broadcast 192.168.16.255
  18.     gateway 192.168.16.1 #gateway da rede
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement