- 论坛徽章:
- 1
|
哥们看下这个
- [root@alin-laptop ~]# grep eth /etc/xen/scripts/network-bridge
- # (default eth${vifnum}) to it, copies the IP addresses from the device
- # netdev The interface to add to the bridge (default eth${vifnum}).
- # antispoof Whether to use iptables to prevent spoofing (default no).
- # vdev="veth${vifnum}"
- netdev=${netdev:-eth${vifnum}}
- vdev="veth${vifnum}"
- # Returns 0 if the interface named exists (whether up or down), 1 otherwise.
- mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether \(..:..:..:..:..:..\).*/\1/'`
- mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether \(..:..:..:..:..:..\).*/\1/'`
- [root@alin-laptop ~]#
复制代码 |
|