|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-users
Re: [Xen-users] ethtool to view and set network parameters
 
On Fri, May 11, 2007 at 08:38:35AM -0700, Fong Vang wrote:
> in dom0, how does one get and set the link information for a NIC?  In a
> non-xen kernel, we could get this info by simply running:
> 
> # ethtool eth0
> Settings for eth0:
>        Supported ports: [ TP MII ]
>        Supported link modes:   10baseT/Half 10baseT/Full
>                                100baseT/Half 100baseT/Full
>        Supports auto-negotiation: Yes
>        Advertised link modes:  10baseT/Half 10baseT/Full
>                                100baseT/Half 100baseT/Full
>        Advertised auto-negotiation: Yes
>        Speed: 100Mb/s
>        Duplex: Full
>        Port: Twisted Pair
>        PHYAD: 1
>        Transceiver: internal
>        Auto-negotiation: on
>        Supports Wake-on: d
>        Wake-on: d
>        Link detected: yes
> 
> But in a xen kernel (in dom0), a lot of the information is not available.
> 
> # ethtool eth0
> Settings for eth0:
>        Link detected: yes
> 
> 
> How does one get (and set) this info on dom0?
If you're using the default XenD config file, then network-script will be
futzing around with your Dom0 network devices. So eth0 will be a fake dev
and your real physical device will probably be peth0 instead. Running
ethtool on peth0 should show you all the settings you'd expect.
Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
 
 |   
 
 | 
    | 
  
  
    |   | 
    |