vyatta 4 配置NAT
上星期用vyatta4配置了一个NAT,
configure
set service ssh
set service telnet
set interfaces ethernet eth0 172.16.1.1/25
set interfaces ethernet eth1 192.168.1.1/24
set system gateway-address 192.168.1.1
设置默认网关
配置NAT
set service nat rule 1 outbound-interface eth1 ##NAT外网接口为 eth1
set service nat rule 1 type masquerade
set service nat rule 1 source address 172.16.1.0/25 ## 源地址
set system login user vyatta authentication plaintext-password 123456
set system login user root authentication plaintext-password 123456
commit
save config.boot
set service ssh
set service telnet
set interfaces ethernet eth0 172.16.1.1/25
set interfaces ethernet eth1 192.168.1.1/24
set system gateway-address 192.168.1.1
设置默认网关
配置NAT
set service nat rule 1 outbound-interface eth1 ##NAT外网接口为 eth1
set service nat rule 1 type masquerade
set service nat rule 1 source address 172.16.1.0/25 ## 源地址
set system login user vyatta authentication plaintext-password 123456
set system login user root authentication plaintext-password 123456
commit
save config.boot