Difference between revisions of "NMCLI"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) (Created page with "==Create Bridge Interface== <ref>https://www.cyberciti.biz/faq/how-to-add-network-bridge-with-nmcli-networkmanager-on-linux/</ref> <pre> [root@natasha ~]# nmcli con add type b...") |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | ==Policy Based Routing== | ||
+ | ===Return traffic on interface it came in on=== | ||
+ | WIP | ||
+ | <pre> | ||
+ | nmcli> set ipv4.routes 0.0.0.0/1 <gateway> table=10 | ||
+ | nmcli> set ipv4.routes 128.0.0.0/1 <gateway> table=10 | ||
+ | nmcli> set ipv4.routing-rules priority 100 iif eth3 table 10 | ||
+ | </pre> | ||
==Create Bridge Interface== | ==Create Bridge Interface== | ||
<ref>https://www.cyberciti.biz/faq/how-to-add-network-bridge-with-nmcli-networkmanager-on-linux/</ref> | <ref>https://www.cyberciti.biz/faq/how-to-add-network-bridge-with-nmcli-networkmanager-on-linux/</ref> |
Revision as of 11:55, 28 August 2021
Policy Based Routing
Return traffic on interface it came in on
WIP
nmcli> set ipv4.routes 0.0.0.0/1 <gateway> table=10 nmcli> set ipv4.routes 128.0.0.0/1 <gateway> table=10 nmcli> set ipv4.routing-rules priority 100 iif eth3 table 10
Create Bridge Interface
[root@natasha ~]# nmcli con add type bridge ifname br0 [root@natasha ~]# nmcli con add type bridge-slave ifname eno1 master br0 [root@natasha ~]# nmcli con edit bridge-br0 nmcli> set ipv4.addresses 192.168.11.120/24 nmcli> set ipv4.gateway 192.168.11.1 nmcli> save nmcli> quit [root@natasha ~]# nmcli con up br0