2 Gateways or Multiple Gateway on a single CentOS box Rumi, May 21, 2015 Scenerio- eth0- 172.30.0.100 | Gateway- 172.30.0.97 eth1- 192.168.2.247 | Gateway- 192.168.2.1 Need to connect to SIP BOX destination (fictitious)- 202.140.1.1 eth0 has not internet access but it uses the mentioned (172.30.0.97) as gateway to reach 202.140.1.1 server eth0 has internet access by using 192.168.2.1 gateway. Here goes the configuration on /etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82540EM Gigabit Ethernet Controller DEVICE=eth0 BOOTPROTO=static BROADCAST=172.30.0.103 DHCPCLASS= HWADDR=08:00:27:E6:A6:62 IPADDR=172.30.0.100 NETMASK=255.255.255.248 NETWORK=172.30.0.96 ONBOOT=yes ip route add 202.40.1.1/32 via 172.30.0.97 Here goes the configuration on /etc/sysconfig/network-scripts/ifcfg-eth1 # Intel Corporation 82540EM Gigabit Ethernet Controller DEVICE=eth1 BOOTPROTO=static BROADCAST=192.168.2.255 HWADDR=08:00:27:86:40:CD IPADDR=192.168.2.247 NETMASK=255.255.255.0 NETWORK=192.168.2.0 ONBOOT=yes Configuration on /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=16426 #GATEWAY=172.30.0.97 GATEWAY=192.168.2.1 Configuration on /etc/resolv.conf (Your DNS Server)- #nameserver 8.8.8.8 nameserver 114.130.5.5 nameserver 114.130.5.6 Related Administrations Configurations (Linux) CentOSiprouteMultiple Gateway
Install Zabbix Agent on Ubuntu 20.04 June 21, 2023 Zabbix agent is installed on the remote host (target) to monitor the hard drive, memory processor, etc. The agent collects data and sends back to Zabbix Server. Zabbix agents can use passive or active checks to pass information. In passive check, Zabbix server (poller) requests an agent for certain information, and the agent sends back a… Read More
Convert squid timestamps July 27, 2017 When you work with a squid access log file you sometimes want to know when a site or resource was accessed. Squid does not store the date and time information for that in a human readable format. It is stored as <unix timestamp>.<centisecond> so you can use a command like… Read More
Simple way to tune apache performance using mpm prefork module April 19, 2017 There could be many reasons why your website performance is poor, one of them can possibly be that Apache is not coping with the load. Below you’ll find ready to consume configuration to make Apache performance better using the Apache MPM prefork module. To do this, just include the below… Read More