Advertisement
Guest User

Untitled

a guest
May 12th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 KB | None | 0 0
  1. !!!/etc/network/interfaces!!!
  2.  
  3. auto lo
  4. iface lo inet loopback
  5.  
  6. auto eth0 eth1
  7. iface eth0 inet dhcp
  8. iface eth1 inet dhcp
  9.  
  10.  
  11. !!!ifconfig!!!
  12.  
  13. eth0 Link encap:Ethernet HWaddr c0:4a:00:11:86:00
  14. inet6 addr: fe80::c24a:ff:fe01:8600/64 Scope:Link
  15. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  16. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  17. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  18. collisions:0 txqueuelen:1000
  19. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  20. Interrupt:66 Base address:0xa000
  21.  
  22. eth1 Link encap:Ethernet HWaddr 00:19:dc:51:19:8f
  23. inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0
  24. inet6 addr: fe80::219:dbff:fe51:198f/64 Scope:Link
  25. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  26. RX packets:690 errors:0 dropped:0 overruns:0 frame:0
  27. TX packets:442 errors:0 dropped:0 overruns:0 carrier:0
  28. collisions:0 txqueuelen:1000
  29. RX bytes:63082 (63.0 KB) TX bytes:56893 (56.8 KB)
  30.  
  31. lo Link encap:Local Loopback
  32. inet addr:127.0.0.1 Mask:255.0.0.0
  33. inet6 addr: ::1/128 Scope:Host
  34. UP LOOPBACK RUNNING MTU:65536 Metric:1
  35. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  36. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  37. collisions:0 txqueuelen:0
  38. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  39.  
  40. Notice that Eth1 is connected, but Eth0 is not.
  41.  
  42. !!!/etc/udev/rules.d/70-persistent-net.rules!!!
  43.  
  44. # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0 (r8169)
  45. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c0:4a:00:11:86:00", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  46.  
  47. # PCI device 0x1106:/sys/devices/pci0000:00/0000:00:12.0 (via-rhine)
  48. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:db:51:19:8f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
  49.  
  50.  
  51. !!!lshw -C network!!!
  52. *-network
  53. description: Ethernet interface
  54. product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
  55. vendor: Realtek Semiconductor Co., Ltd.
  56. physical id: 0
  57. bus info: pci@0000:03:00.0
  58. logical name: eth0
  59. version: 06
  60. serial: c0:4a:00:11:86:00
  61. size: 100Mbit/s
  62. capacity: 1Gbit/s
  63. width: 64 bits
  64. clock: 33MHz
  65. capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet phy sical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
  66. configuration: autonegotiation=on broadcast=yes driver=r8168 driverversio n=8.038.00-NAPI duplex=full latency=0 link=yes multicast=yes port=twisted pair s peed=100Mbit/s
  67. resources: irq:66 ioport:ac00(size=256) memory:dfbff000-dfbfffff memory:d fefc000-dfefffff
  68. *-network
  69. description: Ethernet interface
  70. product: VT6102 [Rhine-II]
  71. vendor: VIA Technologies, Inc.
  72. physical id: 12
  73. bus info: pci@0000:00:12.0
  74. logical name: eth1
  75. version: 7c
  76. serial: 00:19:db:51:19:8f
  77. size: 100Mbit/s
  78. capacity: 100Mbit/s
  79. width: 32 bits
  80. clock: 33MHz
  81. capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-f d 100bt 100bt-fd autonegotiation
  82. configuration: autonegotiation=on broadcast=yes driver=via-rhine driverve rsion=1.5.1 duplex=full ip=192.168.1.11 latency=64 link=yes maxlatency=8 mingnt= 3 multicast=yes port=MII speed=100Mbit/s
  83. resources: irq:23 ioport:d000(size=256) memory:dfffd000-dfffd0ff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement