GRE tunnels between Cisco and Linux routers using iproute

This article was first written in August 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/167).
GRE tunnels between Cisco and Linux (2.4 and up) routers are possible. Given the following two routers, each one gateway for its network:

linux

Public IP: 82.72.101.226 Private network: 192.168.4.0/24 IP on that private network: 192.168.4.4

cisco

Public IP: 123.45.67.8 Private network: 192.168.10.0/24 IP on that private network: 192.168.10.4 See IP

Redirecting ports (NAT) to another machine on a Cisco router

This article was first written in April 2004 for
the BeezNest technical website (http://glasnost.beeznest.org/articles/121)
Log into the machine (using telnet for example). Change to enable mode. Change to configuration terminal mode:
# conf term
Issue the following command to redirect port 22/tcp from the outside interface (address) to the inside machine you would like the connection to get to:
(config)# ip nat inside source static tcp 192.168.0.7 22 222.221.220.68 22
First IP is the inside local IP address (inside the LAN, only reachable locally, so interna

Activating the DHCP server in a Cisco router

This article was first written in July 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/280).
Here is an example on how to configure a DHCP server on a Cisco router.
ip domain-name 195.238.2.21
ip dhcp excluded-address 192.168.64.1
ip dhcp excluded-address 192.168.1.7
ip dhcp pool DHCPPool
   import all
   network 192.168.64.0 255.255.255.0
   dns-server 195.238.2.21 195.238.2.22
   default-router 192.168.64.253
   option 150 ip 10.31.1.107
Note that the DHCP pool is 192.168.64.0/24 and that there are excluded addresses.