Archive

Archive for January, 2008

Changing IP address in Gentoo box

January 29, 2008 Leave a comment

The other nite I changed my IP address scheme at home. For a Gentoo box:

I also had to changed
SSH, mySQL config file, apache listening IP and it’s virtual hosts, and the permitted hosts for Samba.

hero etc # vim /etc/conf.d/net
config_eth0=(

“10.10.1.2/28″
“10.10.1.9/28″
“10.10.1.8/28″

routes_eth0=(
“default via 10.10.1.1″
)

hero etc # ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:11
inet addr:10.10.1.2 Bcast:10.255.255.255 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50625745 errors:0 dropped:0 overruns:0 frame:0
TX packets:78935112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:888751433 (847.5 Mb) TX bytes:2592627611 (2472.5 Mb)
Interrupt:16

eth0:1 Link encap:Ethernet HWaddr 00:11:11
inet addr:10.10.1.9 Bcast:10.255.255.255 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3103 errors:0 dropped:0 overruns:0 frame:0
TX packets:3103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:227515 (222.1 Kb) TX bytes:227515 (222.1 Kb)
Interrupt:16

eth0:2 Link encap:Ethernet HWaddr 00:11:11
inet addr:10.10.1.8 Bcast:10.255.255.255 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3103 errors:0 dropped:0 overruns:0 frame:0
TX packets:3103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:227515 (222.1 Kb) TX bytes:227515 (222.1 Kb)
Interrupt:16

Categories: Linux

VIM command to lowercase letters

January 25, 2008 Leave a comment

To convert all chars to lower case in the lines 1 to 155
:1,155!tr [A-Z] [a-z]

Categories: Linux

Cisco IOS naming scheme

January 25, 2008 Leave a comment

One of these days I’ll know exactly what which letter in the IOS name means…

http://www.cisco.com/en/US/products/sw/iosswrel/ps1828/products_white_paper09186a008018305e.shtml

Here is the PDF version

Categories: Networking

Cisco router and tftp config at bootup

January 23, 2008 Leave a comment

If your router takes a long time to boot up and it is looking for config files from a tftp server type no service config.

(tftp://255.255.255.255/cisconet.cfg) failed
00:37:25: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from
(tftp://255.255.255.255/

http://www.velocityreviews.com/forums/t296140-router-looking-for-cfg-files.html

Categories: Networking

Netflow overview

January 23, 2008 Leave a comment

show ip cache flow

Here is a good overview doc

http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6555/ps6601/prod_white_paper0900aecd80406232.html

We are using Scrunitizer as our Netflow collector.

Categories: Networking

Cisco router SNMP strings for CPU utilization

January 15, 2008 Leave a comment

5 min avg: .1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
1 min avg: .1.3.6.1.4.1.9.9.109.1.1.1.1.7.1
5 sec avg: .1.3.6.1.4.1.9.9.109.1.1.1.1.6.1

Adding a SNMP by MIB in Sitescope is a little tricky. But select .1.3.6.1.4.1, then select all, Sitescope will then list all alerts to be monitored. Do a search (Ctrl+F) for the exact string: 109.1.1.1.1.7.1, and Sitescope will show the name of the SNMP string. i.e.
iso/org/dod/internet/private/enterprises/cisco/ciscoMgmt/109/1/1/1/1/7/ciscoMgmt.109.1.1.1.1.7.1

http://www.cisco.com/warp/public/477/SNMP/collect_cpu_util_snmp.html

Categories: Networking

RAID and Parity

January 14, 2008 Leave a comment

Wikipedia has a image of RAID 5 and parity.

http://en.wikipedia.org/wiki/Image:RAID_5.svg

The minimum amount of drives need is 3. In this example, if Disk 3 is lost, the RAID set can use A1, A2, A3 to create A’s parity. Likewise, B1, B2 and Bp will be used to create B3. If you lose two drives at once, then you are out of luck.

I don’t know how they can extract the parity’s data to “recreate” the data…

I guess it is like SAN/NAS and snapshot technology, which I never fully understood either.

Categories: Misc

Virtual phone numbers

January 7, 2008 Leave a comment

We wanted Austin, SA, Dallas numbers to be forwarded to our general office cheaply and easily. I did some research and the term is “virtual phone numbers.” All the VoIP providers have that feature, but all require a phone to be placed in our office. In the end we went with Skype. Other providers I looked at:

www.grandcentral.com (for personal use only)
www.phonenumberbank.com (needed a number already)
www.ureach.com (only 1800 numbers)
www.callcentric.com

Categories: Misc

Network Warrior notes

January 2, 2008 Leave a comment

I recently finished Network Warrior and it was a really good networking book. It had a lot of cool tips that other technical books don’t offer. Anyhow here are my notes to help me remember stuff.

http://www.movement3.com/docs/network_warrior.pdf

Same doc as the PDF, but you can open this file in Textedit.
http://www.movement3.com/docs/network_warrior

Categories: Networking
Follow

Get every new post delivered to your Inbox.