Advertisement
Guest User

Untitled

a guest
Jul 26th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. # brctl show
  2. bridge name bridge id STP enabled interfaces
  3. xenbr0 8000.003005fa7673 no peth0
  4. vif1.0
  5. vif3.0
  6. vif3.1
  7. xenbr1 8000.003005fa7674 no peth1
  8.  
  9. # cat /etc/xen/scripts/dual-ethernet-bridge
  10. #!/bin/sh
  11. # Exit if anything goes wrong.
  12. set -e
  13.  
  14. # First arg is the operation.
  15. OP=$1
  16. shift
  17.  
  18. script=/etc/xen/scripts/network-bridge
  19.  
  20. case ${OP} in
  21. start)
  22. $script start vifnum=0 bridge=xenbr0 netdev=eth0
  23. $script start vifnum=1 bridge=xenbr1 netdev=eth1
  24. ;;
  25.  
  26. stop)
  27. $script stop vifnum=0 bridge=xenbr0 netdev=eth0
  28. $script stop vifnum=1 bridge=xenbr1 netdev=eth1
  29. ;;
  30.  
  31. status)
  32. $script status vifnum=0 bridge=xenbr0 netdev=eth0
  33. $script status vifnum=1 bridge=xenbr1 netdev=eth1
  34. $script status vifnum=2 bridge=xenbri netdev=dummy0
  35. ;;
  36.  
  37. *)
  38. echo 'Unknown command: ' ${OP}
  39. echo 'Valid commands are: start, stop, status'
  40. exit 1
  41. esac
  42.  
  43.  
  44. # egrep network-script /etc/xen/xend-config.sxp
  45. (network-script dual-ethernet-bridge)
  46.  
  47.  
  48.  
  49. # ethtool peth1
  50. Settings for peth1:
  51. Supported ports: [ TP ]
  52. Supported link modes: 10baseT/Half 10baseT/Full
  53. 100baseT/Half 100baseT/Full
  54. 1000baseT/Half 1000baseT/Full
  55. Supports auto-negotiation: Yes
  56. Advertised link modes: 10baseT/Half 10baseT/Full
  57. 100baseT/Half 100baseT/Full
  58. 1000baseT/Half 1000baseT/Full
  59. Advertised pause frame use: No
  60. Advertised auto-negotiation: Yes
  61. Speed: 100Mb/s
  62. Duplex: Full
  63. Port: Twisted Pair
  64. PHYAD: 1
  65. Transceiver: internal
  66. Auto-negotiation: on
  67. MDI-X: Unknown
  68. Supports Wake-on: g
  69. Wake-on: g
  70. Current message level: 0x000000ff (255)
  71. Link detected: yes
  72.  
  73.  
  74.  
  75.  
  76. # dmesg |grep eth
  77. [ 0.746000] eth0: Tigon3 [partno(BCM95715) rev 9003] (PCIX:133MHz:64-bit) MAC address 00:30:05:fa:76:73
  78. [ 0.746008] eth0: attached PHY is 5714 (10/100/1000Base-T Ethernet) (WireSpeed[1])
  79. [ 0.746013] eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
  80. [ 0.746017] eth0: dma_rwctrl[76148000] dma_mask[40-bit]
  81. [ 0.770477] eth1: Tigon3 [partno(BCM95715) rev 9003] (PCIX:133MHz:64-bit) MAC address 00:30:05:fa:76:74
  82. [ 0.770483] eth1: attached PHY is 5714 (10/100/1000Base-T Ethernet) (WireSpeed[1])
  83. [ 0.770488] eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
  84. [ 0.770493] eth1: dma_rwctrl[76148000] dma_mask[40-bit]
  85. [ 5.735055] ADDRCONF(NETDEV_UP): eth0: link is not ready
  86. [ 8.453153] tg3: eth0: Link is up at 1000 Mbps, full duplex.
  87. [ 8.453159] tg3: eth0: Flow control is off for TX and off for RX.
  88. [ 8.454621] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
  89. [ 19.252012] eth0: no IPv6 routers present
  90. [ 104.549470] ADDRCONF(NETDEV_UP): peth0: link is not ready
  91. [ 107.112101] tg3: peth0: Link is up at 1000 Mbps, full duplex.
  92. [ 107.112107] tg3: peth0: Flow control is off for TX and off for RX.
  93. [ 107.113527] ADDRCONF(NETDEV_CHANGE): peth0: link becomes ready
  94. [ 107.587143] device peth0 entered promiscuous mode
  95. [ 107.601094] xenbr0: port 1(peth0) entering forwarding state
  96. [ 107.770479] ADDRCONF(NETDEV_UP): peth1: link is not ready
  97. [ 107.781487] device peth1 entered promiscuous mode
  98. [ 109.323259] tg3: peth1: Link is up at 100 Mbps, full duplex.
  99. [ 109.323265] tg3: peth1: Flow control is off for TX and off for RX.
  100. [ 109.325031] ADDRCONF(NETDEV_CHANGE): peth1: link becomes ready
  101. [ 109.325102] xenbr1: port 1(peth1) entering forwarding state
  102. [ 117.476018] peth0: no IPv6 routers present
  103. [ 119.928012] peth1: no IPv6 routers present
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement