kshort

Sep 082009
 
This Expect script takes as it’s argument, the IP Address of an IOS device that is using AAA Authentication (Username/Password), and returns the OSPF Neighbors of the device.
Usage: ospf_neighbors_script ip address
The script also creates a file with the OSPF Neighbors in the directory it’s run from. The format is “ip address-ospf_neighbors”,
{quickdown:47}
kshort@LinuxStudent:~$ ospf_neighbors_script 10.255.0.26
Username? kshort
Password?
Trying 192.168.0.26…
Connected to 192.168.0.26.
Escape character is ‘^]’.

User Access Verification

Username: kshort
Password:

Test-Router#terminal length 0
Test-Router#sho ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
192.168.1.1       0   FULL/  -        00:00:38    192.168.0.85     Serial1/0.2
192.168.2.1       0   FULL/  -        00:00:38    192.168.0.25     Serial1/0.1
192.168.3.1       1   FULL/BDR        00:00:39    192.168.2.70     GigabitEthernet0/1
192.168.4.1       1   FULL/BDR        00:00:38    192.168.2.66     GigabitEthernet0/0
Test-Router#

Oct 162008
 

So here’s the issue I’m trying to resolve. This worked before. Now I authenticate successfully via ssh, but get the error message you’ll see below. Any takers?

Login and leave your answer in the comments section. If your solution works I’ll give you credit here, and put you at the top of the list for some LinuxDynasty swag!

Continue reading “Member Collaboration HowTo – Synergy Error” »

Oct 102008
 

This has come up on a couple of projects I have been involved in lately. It seems that this is becoming frequently used as a redundancy configuration for Linux-based Oracle Server applications on the network.

 In Cisco lingo this is called an EtherChannel. In Linux-speak it’s called Bonding. The protocol used – as required by the Linux software – is LACP (Link Aggregation Control Protocol).

Continue reading “HowTo Configure LACP on Cisco Switch for Mode 4 Bonding on a Linux box” »

Oct 052008
 

This HowTo demonstrates how to configure some basic parameters on your Cisco Router or Cisco Switch running IOS. These commands were run on IOS version 12.4-6.T11. This is the standard stuff that I’d typically put on every Cisco Router or Cisco Switch running IOS in the network. 

**Note feel free to post any questions or comments in the Forums section on this site.

Continue reading “HowTo – Cisco Router Basic Configuration CLI Log” »

Oct 022008
 

I figured we’ve jumped around a bit, but not shown some basic Cisco information from the low-level up. This HowTo format will appear more often in the future. It will consist of the output from the capture of a real procedure on the router, followed by either diagnostic or configuration commands.

In this case you’ll see the bootup sequence of a new Cisco 1811 router (which is basically the same sequnce as for any Cisco IOS device), then I’ll run the "sho ver" (short for "show version") command. I used "PUTTY" a free download terminal client to record the information below.

Continue reading “HowTo – Cisco Router Clean Bootup Sequence and Hardware Spec Check” »

Sep 302008
 

There may be a time when you need to configure 802.1Q Tagging on a router’s FastEthernet Interface.

One potential situation is when you have a switch that doesn’t have Layer-3 capabilities connected to the router, but you have to segment the hosts connected to the switch into seperate networks. Why? Maybe you have a segments you want to prevent from speaking to each other – you can apply access-lists to the subinterfaces (hint) just as you can a normally configured physical interface.

Continue reading “HowTo Configure 802.1Q Tagging on a Cisco Router” »

Sep 262008
 

This time around we’re  going to use NMAP for more than just a basic scan. I really like this tool with all it’s switches.

So anyway to find a network device just use nmap with the "-O" switch (that’s a capital letter O, for OS detection).

Here’s and example where I used this command to determine that a host was a Nortel switch:

Continue reading “Using NMAP to find Network Device Types” »

Aug 192008
 

This script will find a MAC address on a Cisco IOS based switch.

Here’s what you’ll see when the switch is successful and unsuccessful finding the MAC address.

Notice it prompts you for your username and password. This script is integrated with the Expect Telnet script on this site.

 

kshort@LinuxStudent:~$ ./findMACaddress_final 10.10.12.1
Enter the MAC Address? 0013.72fb.3050
Username? kshort
Password?

——————-Here Are the The Results of Your Search——————

vlan   mac address     type    learn     age              ports
——+—————-+——–+—–+———-+————————–
Supervisor:
*   95  0013.72fb.3050   dynamic  Yes         65   Gi1/3

Continue reading “Expect Script to find MAC Address on Cisco IOS Devices” »

Jul 302008
 

This is a simple script written in Expectk. The purpose of this script is to allow entering the Telnet server name or address and the username/password combination (one time), then having the script open a telnet session, login to the Telnet server, then launch a telnet session from the telnet server to the device and drop you on a command prompt. As stated in the title, the prompts are what’s to be – expected (get it, expected, Expect script? – ahh, forget it :) – from a Cisco IOS device using username/password authentication.

Continue reading “Expect Telnet Script – specific to Cisco devices” »

May 292008
 

Ok. I’ve we’ve been getting some slaps via email for the delay in continuing this feature. You know we love this stuff too, but we also work for a living. And without those good old paychecks we can’t even pay the bills for this Community. Whew I didn’t know Linux folks could be so pushy. Oh wait, I take that back. Not that I’m saying the Co-Founder of LinuxDynasty is pushy at all 

Continue reading “Linux Guide to Free Tools for Network Engineers Part 2 -NMAP” »


Warning: fopen(/home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/lib/standard.txt) [function.fopen]: failed to open stream: No such file or directory in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 104

Warning: fread(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 106
.