<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cisco &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/tag/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Sat, 23 Nov 2019 14:01:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Cisco:  Cisco router as NAT device using COMCAST cable modem</title>
		<link>https://blog.andreev.it/2012/01/cisco-router-as-nat-device-using-comcast-cable-modem/</link>
					<comments>https://blog.andreev.it/2012/01/cisco-router-as-nat-device-using-comcast-cable-modem/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 19:48:38 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[router]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=265</guid>

					<description><![CDATA[I bought an used Cisco 2611 router from eBay to use it on my&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>I bought an used Cisco 2611 router from eBay to use it on my internal network. While I was playing with it, I decided to try and see if I can get it working as a NAT device instead of my current FreeBSD box. You will still need the modem that your ISP provides it to you. I doubt that you can use a coax Cisco module and replace the ISP&#8217;s modem. Comcast uses modem’s MAC address to track your connection, usage etc…</p>
<p>So I have two NICs in the router and this is how they are confugured. </p>
<pre class="brush: bash; title: ; notranslate">
interface Ethernet0/0
description OUTSIDE
ip address dhcp   #The outside interface gets its IP address from the modem since I don;t have a static IP
 
no ip unreachables
no ip proxy-arp
ip nat outside  # Define the NAT
 
half-duplex  # For some reason, if I used auto or full-duplex, the connection was painfully slow
 
no cdp enable  # You don’t need Cisco CDP protocol running on the outside interface
!
interface Ethernet0/1
description INSIDE
ip address 192.168.1.1 255.255.255.0 # My internal IP, this is going to be your gateway IP
 
no ip proxy-arp
ip nat inside # Define the NAT on the inside interface
 
full-duplex
!
 
ip nat inside source list 1 interface Ethernet0/0 overload
ip classless
no ip http server
ip pim bidir-enable
!
access-list 1 permit 192.168.1.0 0.0.0.255
</pre>
<p>Last line defines the access list. It means that all hosts in 192.168.1.0/24 range will be alowed to use the NAT. The subnet mask needs to go in reverse, so 255.0.0.0 is 0.0.0.255. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2012/01/cisco-router-as-nat-device-using-comcast-cable-modem/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Cisco:  OpenVPN and Cisco router</title>
		<link>https://blog.andreev.it/2011/12/cisco-router-and-openvpn/</link>
					<comments>https://blog.andreev.it/2011/12/cisco-router-and-openvpn/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Mon, 05 Dec 2011 20:24:43 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=167</guid>

					<description><![CDATA[Recently, I bought a Cisco 3620 router with two Ethernet interfaces. I could’ve easily&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>Recently, I bought a Cisco 3620 router with two Ethernet interfaces. I could’ve easily used one laptop running Linux/*BSD with two NICs, but I was planning to study IOS. My plan was to connect another laptop (172.16.1.2) to my existing network. I also access my computers from outside using OpenVPN so I wanted to be able to access the new laptop with its internal IP. The image below briefly shows my wanted configuration.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2011/12/P007-01.gif"><img fetchpriority="high" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2011/12/P007-01.gif" alt="" width="1008" height="284" class="aligncenter size-full wp-image-5910" /></a><br />
First, I installed the router. I connected one cable from <strong>Eth0/0</strong> to the Cisco switch where all computers have <strong>192.168.1.0/24</strong> IP range. The second cable went from <strong>Eth0/1</strong> interface on the router to another Netgear switch. I connected my laptop to this switch and assigned it a static IP of <strong>172.16.1.2.</strong> Next, I configured my Cisco router. This is a very simple configuration but it suits my needs.</p>
<pre class="brush: bash; title: ; notranslate">
router&gt; ena
router# conf t
router(config)# int Eth0/0
router(config-if)# ip address 192.168.1.11 255.255.255.0
router(config-if)# no shut
router(config-if)# int Eth0/1
router(config-if)# ip address 172.16.1.1 255.255.0.0
router(config-if)# no shut
router(config-if)# router igrp 1
router(config-rou)# network 192.168.1.0
router(config-rou)# network 172.16.0.0
router(config-rou)# CTRL-Z
</pre>
<p>After this, I was able to ping both <strong>192.168.1.1</strong> and <strong>172.16.1.2</strong> from the router. But, when I tried to ping <strong>172.16.1.1 (Cisco 3600 router)</strong> from <strong>192.168.1.1 (FreeBSD server)</strong>, I was getting no response.  That’s because, there is no route to <strong>172.16.1.1</strong>. In order to make this happen, I have to do this on the <strong>FreeBSD box (192.168.1.1):</strong></p>
<pre class="brush: bash; title: ; notranslate">
route add -net 172.16.0.0/16 192.168.1.11 
</pre>
<p>Which means, “If I have to reach <strong>172.16.0.0</strong> network, use <strong>192.168.1.11</strong> as a gateway, not the default one.” In order this change to be permanent, I added the following in <strong>/etc/rc.conf:</strong></p>
<pre class="brush: bash; title: ; notranslate">
# Static route to 172.16.0.0/16
static_routes=&quot;internal1&quot;
route_internal1=&quot;-net 172.16.0.0/16 192.168.1.11&quot; 
</pre>
<p>You can check your route with <strong>“netstat -rn”</strong> on FreeBSD and Mac OS X and with <strong>“route print”</strong> on Windows.</p>
<p>Because I made this change on <strong>192.168.1.1</strong> which is a default router for all my computers on <strong>192.168.1.0/24</strong> subnet, I don’t have to go to each one of them and change the router settings. So, when I do <strong>ping 172.16.1.2</strong> on a computer with <strong>192.168.1.3</strong> IP and <strong>192.168.1.1</strong> as a gateway, the gateway (FreeBSD box) simply forwards these packets to <strong>192.168.1.11 (Cisco 3600 router)</strong>.<br />
I went back to <strong>172.16.1.2</strong> computer and I confirmed that I can ping <strong>192.168.1.1</strong>. There is no need to change routes on this network, because they use <strong>172.16.1.1</strong> as a gateway which knows how to route to <strong>192.168.1.0/24</strong>. Mind that <strong>192.168.1.0/24</strong> network is using two routes. One for the outside world <strong>(192.168.1.1)</strong> and one to access <strong>172.16.0.0/16</strong> network.<br />
Once I confirmed that I can route between two networks, I went back to Cisco router and added the following command:</p>
<pre class="brush: bash; title: ; notranslate">
router(config)# ip route 10.8.0.0 255.255.0.0 192.168.1.1 
</pre>
<p>which is very similar to <strong>route add -net</strong>. It means, use <strong>192.168.1.1</strong> as a gateway to reach <strong>10.8.0.0/16</strong> network.<br />
I also had to add the following line in <strong>openvpn.conf</strong> on the <strong>OpenVPN server (192.168.1.1):</strong></p>
<pre class="brush: bash; title: ; notranslate">
push &quot;route 192.168.1.0 255.255.255.0&quot;
# Line below was added 
push &quot;route 172.16.0.0 255.255.0.0&quot; 
</pre>
<p>Once this was done, I was able to access any device on my network.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2011/12/cisco-router-and-openvpn/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
