/[sysadmin-cookbook]/recepies/lxc/create-bridge.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /recepies/lxc/create-bridge.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

recepies/lxc/2.network-bridge revision 61 by dpavlin, Tue May 12 23:13:01 2009 UTC recepies/lxc/create-bridge.sh revision 67 by dpavlin, Thu May 14 09:47:23 2009 UTC
# Line 1  Line 1 
1  root@klin:/srv/sysadmin-cookbook/recepies/lxc# brctl addbr br0  #!/bin/sh -x
 root@klin:/srv/sysadmin-cookbook/recepies/lxc# brctl setfd br0 0  
2    
3  root@klin:~# ifconfig br0 172.20.0.1 netmask 255.255.255.0  brctl addbr br0
4    brctl setfd br0 0
5    
6  root@klin:~# brctl addif br0 eth0  ifconfig br0 172.20.0.1 netmask 255.255.255.0
7    
8  root@klin:~# brctl show br0  brctl addif br0 eth0
9    
10    brctl show br0
11    ifconfig br0
12    

Legend:
Removed from v.61  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.26