route command

Linux kernel have a bug that affects the default route for ipv6 networking. Adding an extra route manually can solve the issue.

{ 0 comments }

Someone might attack on your system. You can drop attacker IP using IPtables. However, you can use route command to null route unwanted traffic. A null route (also called as blackhole route) is a network route or kernel routing table entry that goes nowhere. Matching packets are dropped (ignored) rather than forwarded, acting as a […]

{ 32 comments }

Static routes improves overall performance of your network (especially bandwidth saving). They are also useful in stub networks (i.e. there is only one link to the network). For example, each LAN (located at different offices) is connected to HQ IDC (Internet data center) using single T1/LL/Wan links.

For example under Red Hat/Fedora Linux you can add static router for eth0 network interface by editing /etc/sysconfig/network-scripts/route-eth0 file. Under Debian Linux add static route by editing /etc/network/interface file.

{ 36 comments }

You can use route command to configure routing. Syntax is as follows: route add net {network-address} netmask {subnet} {router-address} Let us assume your router address is 192.168.1.254 and network ID is 192.168.1.0/24, then you can type route command as follows: # route add net 192.168.1.0 netmask 255.255.255.0 192.168.1.254 OR To add a default route: # […]

{ 4 comments }