CentOS7 主机配置为多 LAN 口路由
参考
基本镜像环境
CentOS-7-x86 2003
iptables
需要具备的功能
- DHCP - Dnsmasq
- DNS - Dnsmasq
- 基本的路由转发功能
- 路由表(配置路由) - iproute2
功能描述
- 单 LAN 示例拓扑
+------------+--------------+ | CentOS7 - router | | | | | | +--+ 10.0.1.1/24 | LAN enp2s0+-------------------------+ | +--+ | | | | |WAN | 172.30.37.200 - route wan +---+ +--+ +-----------------------+enp1s0 enp3s0+-------------------------+ 172.30.37.100 - magage ip +---+ +--+ | | | | | | | +--+ | enp4s0+-------------------------+ | +--+ | | | | +---------------------------+