management network to a network port for additional ones munin and monit
- by paolo
management network to a network port for additional ones munin and monit
I want to build a separate Netzwek for server management. I have several network cards a linux / debian / ubuntu with computer.
Set both network cards sin in the /etc/network/interfaces.
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 10.0.0.240
netmast 255.255.255.0
network 10.0.0.0
brodacast 10.0.0.255
gateway 10.0.0.254
auto eth1
iface eth1 inet static
address 10.0.10.240
netmast 255.255.255.0
network 10.0.10.0
brodacast 10.0.10.255
post-up ip route add 10.0.0.0/24 dev eth0 src 10.0.0.240 table eth0-WAN
post-up ip route add default via 10.0.0.254 table eth0-WAN
post-up ip route add 10.0.10.0/24 dev eth1 src 10.0.10.240 table eth1-LAN
post-up ip route add default via 10.0.10.200 table eth1-LAN
post-up ip rule add from 10.0.0.240 table eth0-WAN
post-up ip rule add from 10.0.10.240 table eth1-LAN
still i adjusted / etc/iproute2/rt_tables
and following routes set up in the /etc/network/interfaces
I want to have both applications and the network interface separately as munin and monit only on eth1 and not have to eth0.
it goes to the reboot but sometimes not always.
# Traceroute-i eth1 10.0.10.200 not go
what am I doing wrong?