/[projects]/trafficcontrol/bridge.sh
ViewVC logotype

Contents of /trafficcontrol/bridge.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 110 - (show annotations) (download) (as text)
Thu Oct 9 07:49:03 2008 UTC (15 years, 7 months ago) by torben
File MIME type: application/x-sh
File size: 263 byte(s)
Added first version of traffic control scripts.

1 #!/bin/bash
2
3 IF0=eth0
4 IF1=eth2
5
6 brctl delbr br0
7 ifconfig $IF0 down
8 ifconfig $IF1 down
9
10 brctl addbr br0
11 brctl addif mybridge $IF0
12 brctl addif mybridge $IF1
13
14 ip link set up dev $IF0
15 ip link set up dev $IF1
16 ip link set up dev br0
17
18 echo "Created bridge:"
19 brctl show

  ViewVC Help
Powered by ViewVC 1.1.20