SHARE
TWEET

Untitled

a guest Oct 8th, 2015 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat /etc/network/interfaces
  2.  
  3. # Wired adapter #1
  4. iface eth0 inet static
  5.         address 192.168.2.155
  6.         netmask 255.255.255.0
  7.         gateway 192.168.0.155
  8.         bridge_ports eth0 eth1
  9. #       iface eth0 inet dhcp
  10. #       hwaddress ether # if you want to set MAC manually
  11. #       pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
  12. #
  13. # Wired adapter #2
  14.  
  15. auto eth1
  16.         iface eth1 inet dhcp
  17. #       hwaddress ether # if you want to set MAC manually
  18. #       pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
  19. #
  20. # Wireless adapter #1
  21. #auto wlan0
  22. #       allow-hotplug wlan0
  23. #       iface wlan0 inet dhcp
  24. #       wpa-ssid SSID
  25. #       wpa-psk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  26. # to generate proper encrypted key: wpa_passphrase yourSSID yourpassword
  27. #
  28.  
  29. # Local loopback
  30. auto lo
  31.         iface lo inet loopback
  32.  
  33.  
  34. #The loopback network interface
  35. #auto lo eth1 eth0
  36. #iface lo inet loopback
  37. #       allow-hotplug eth0
  38.  
  39.  
  40. ------------
  41. _----------_
  42.  
  43.  
  44.  
  45. ifconfig -a
  46. bond0     Link encap:Ethernet  HWaddr 02:cc:79:f2:86:e6
  47.           BROADCAST MASTER MULTICAST  MTU:1500  Metric:1
  48.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  49.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  50.           collisions:0 txqueuelen:0
  51.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  52.  
  53. eth0      Link encap:Ethernet  HWaddr d0:63:b4:00:4d:f2
  54.           BROADCAST MULTICAST  MTU:1500  Metric:1
  55.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  56.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  57.           collisions:0 txqueuelen:1000
  58.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  59.  
  60. eth1      Link encap:Ethernet  HWaddr 00:00:10:00:30:dd
  61.           inet addr:192.168.0.155  Bcast:192.168.0.255  Mask:255.255.255.0
  62.           inet6 addr: fe80::200:10ff:fe00:30dd/64 Scope:Link
  63.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  64.           RX packets:4655 errors:0 dropped:0 overruns:0 frame:0
  65.           TX packets:348 errors:0 dropped:0 overruns:0 carrier:0
  66.           collisions:0 txqueuelen:1000
  67.           RX bytes:502575 (490.7 KiB)  TX bytes:37230 (36.3 KiB)
  68.  
  69. lo        Link encap:Local Loopback
  70.           inet addr:127.0.0.1  Mask:255.0.0.0
  71.           inet6 addr: ::1/128 Scope:Host
  72.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  73.           RX packets:6 errors:0 dropped:0 overruns:0 frame:0
  74.           TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
  75.           collisions:0 txqueuelen:0
  76.           RX bytes:504 (504.0 B)  TX bytes:504 (504.0 B)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top