User Tools

Site Tools


linux:network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:network [2017/06/15 14:49]
frank
linux:network [2017/09/18 17:37] (current)
frank
Line 3: Line 3:
 <code bash> <code bash>
 # ip addr add 192.168.0.100/​22 dev eth0 # ip addr add 192.168.0.100/​22 dev eth0
 +</​code>​
 +del static IP
 +<code bash>
 +# ip addr del 192.168.0.100/​22 dev eth0
 </​code>​ </​code>​
  
-set mut+del all IP 
 +<code bash> 
 +# ip addr flush dev eth0 
 +</​code>​ 
 +set mtu
 <code bash> <code bash>
 # ip link set dev eth0 mtu 9000 # ip link set dev eth0 mtu 9000
 </​code>​ </​code>​
 +create a bridge
 +<code bash>
 +# brctl addbr br0
 +# brctl addif br0 eth0
 +# ip addr del 192.168.0.100/​24 dev eth0
 +# ip link set up dev br0
 +# ip addr add 192.168.0.100/​24 dev br0
 +# brctl show
 +</​code>​
 +
 +add default gateway
 +<code bash>
 +# ip route add default via 192.168.0.1
 +</​code>​
 +
 +set vf mac
 +<code bash>
 +# ip link set dev eth0 vf 0 mac 24:​8a:​07:​55:​46:​f0 ​
 +</​code>​
 +
 === References === === References ===
 +
 +
 +
 +
 http://​maxubuntu.blogspot.com/​search/​label/​Network http://​maxubuntu.blogspot.com/​search/​label/​Network
linux/network.1497563386.txt.gz · Last modified: 2017/06/15 14:49 by frank