This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:network [2017/08/08 11:17] frank |
linux:network [2017/09/18 17:37] (current) frank |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| </code> | </code> | ||
| del static IP | del static IP | ||
| + | <code bash> | ||
| # ip addr del 192.168.0.100/22 dev eth0 | # ip addr del 192.168.0.100/22 dev eth0 | ||
| + | </code> | ||
| del all IP | del all IP | ||
| + | <code bash> | ||
| # ip addr flush dev eth0 | # ip addr flush dev eth0 | ||
| + | </code> | ||
| set mtu | set mtu | ||
| <code bash> | <code bash> | ||
| # ip link set dev eth0 mtu 9000 | # ip link set dev eth0 mtu 9000 | ||
| + | </code> | ||
| create a bridge | create a bridge | ||
| + | <code bash> | ||
| # brctl addbr br0 | # brctl addbr br0 | ||
| # brctl addif br0 eth0 | # brctl addif br0 eth0 | ||
| Line 21: | Line 25: | ||
| # ip addr add 192.168.0.100/24 dev br0 | # ip addr add 192.168.0.100/24 dev br0 | ||
| # brctl show | # brctl show | ||
| + | </code> | ||
| + | add default gateway | ||
| + | <code bash> | ||
| + | # ip route add default via 192.168.0.1 | ||
| </code> | </code> | ||
| - | |||
| - | === References === | ||
| set vf mac | set vf mac | ||
| Line 30: | Line 36: | ||
| # ip link set dev eth0 vf 0 mac 24:8a:07:55:46:f0 | # ip link set dev eth0 vf 0 mac 24:8a:07:55:46:f0 | ||
| </code> | </code> | ||
| + | |||
| + | === References === | ||
| + | |||
| + | |||
| http://maxubuntu.blogspot.com/search/label/Network | http://maxubuntu.blogspot.com/search/label/Network | ||