Programming :: Checking To See If SSH Is Enable On A Cisco Router/Switch?

Apr 22, 2010

I'm trying to figure out a simple script to go thought 500 Cisco devices to see if I can SSH to the device. Then display something like this:

10.0.0.1 Yes
10.0.0.2 No
10.0.0.3 No

I tried something like this:

Code:

ssh -q -o BatchMode=yes -o StrictHostKeyChecking=no user@10.0.0.1 "echo 2>&1" && echo "Yes" || echo "No"

When tested the above line it replied No, even if I tried it on a Switch that does not have SSH configure.

View 8 Replies


ADVERTISEMENT

Networking :: CentOS VLANs And Cisco Catalyst Switch?

Jul 27, 2011

I have router based on CentOS system with DHCP server. In one eth I have fiber converter attached in second one I have Cisco Catalyst switch connected. From the switch rest of ports are used to provide internet traffic to rest of network. I wanted to divide each segment of network (based on switch ports) that they don't see each other (it'll be good for me if someone will connect his wireless router to the network not to WAN by LAN port and start be a second DHCP server). So my network configuration:

CentOS:

DHCP with range 10.0.0.1/8 network

Switch ports

1 - CentOS DHCP
2 - second server

[code]....

Parts of networks I've assigned IPs 10.network_part.subnet_part.client_ip so I have addresses for clients: 10.1.1.2/8, 10.2.1.3/8, 10.3.0.4/8, etc ...

I've decided to give each port it's own VLAN like below:

Port / VLAN
1 / trunk

[code]....

I've configured switch ports by using:

(config)# interface Gi0/Port_Number
(config-if)# switchport access vlan VLAN_NUMBER

[code]....

And after doing that whole network stopped working. I think that cisco part of configuration is OK (at least customer ports, I don't know if there is any additional info needed for trunk port). On CentOS router I didn't setup anything regarding VLANs ...

View 4 Replies View Related

Networking :: Create Vlan Using Cisco 3750 Switch?

May 24, 2011

Before going to vlan topic I have basic question. I have a gateway as 10.209.108.1/22 if I am connecting gateway to cisco 3750 switch port 1 can I use remaining ports to connect via above gateway? I mean suppose I am connecting NIC to port 2 and IP 10.209.111.200 can i ping 10.209.108.1? Is this valid without configuring any vlan or anything on switch?

View 3 Replies View Related

General :: Can Not Ping 192.168.0.1 Cisco Router Or Anything Else On 192.168.0/24

May 8, 2011

I have two network interface eth0 and eth1 eth0 is on 192.168.0/24 network connected to the internet eth1 is on 10.10.10/24 network and DHCP for this network the clients connected to this interface can not connect to the internet but they can ping 192.168.0.4 which is the eth0 ip but can not ping 192.168.0.1 cisco router or anything else on 192.168.0/24 I have tried few tricks but still not working

1) iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o eth0 j SNAT --to 192.168.0.4/24 it did not work

2) iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 192.168.0.4 did not work as well

View 2 Replies View Related

Ubuntu :: Install IOS Via TFTP In Cisco 2600 Router?

Sep 19, 2010

I'm Melvin, doing a hardware and networking course at Aptech, Kerala, India.
How to install IOS image (file.bin) via TFTP from Ubuntu to a Cisco 2600 router.
Please post the required steps to configure tftpd in Ubuntu.
And since it is insecure, please post recommendations to secure it.
Which folder will TFTPd use and what binary permissions to assign to this folder?

View 1 Replies View Related

Networking :: Cisco Phone Won't Register Going Through Slackware Router

Mar 1, 2011

I was given a Cisco IP Phone (model 7962) and CyberGuard Firewall/VPN (model SG300) from my company. So that I can work from home. But I've been struggling for the past couple of days trying to get it to work. The phone successfully configures it's ip; but it hangs on "Registering".

The setup is such:Cisco phone plugs into the CyberGuard and gets assigned a private IP address; 192.168.48.34; from the CyberGuard.

CyberGuard plugs into my Slackware (12.1) box and gets assigned a private IP address; 10.0.0.191; from the dhcpd server on my Slackware box.

Slackware box then masquerades that 10.0.0.191 into my static public address on the internet.

Port 1723 (PPTP) is open in the iptables firewall on my Slackware box. I've also tried disabling the firewall (ie opening all ports) on my Slackware box.

On my Slackware box; via iptraf; I can see traffic between my Slackware box, the CyberGuard, and my company's server.

Traffic such as:

Code:

And on the company's server; the following is observed:

Code:

My company just keeps saying "open port 1723 + 47". But as I stated above; I have opened them. And Internet searches have revealed absolutely nothing. At this point; I am completely lost as to what may be wrong.

View 5 Replies View Related

Networking :: DROP Filtered Packets On A Cisco Router?

May 31, 2011

I bought a Cisco 1841 to study for a cisco certs. In iptables terms filtered packets are -j REJECT instead of -j DROP. To make things worse telnet and ping replies are on by default.

View 5 Replies View Related

Server :: Connect Cisco Router In Redhat System 5.1?

Oct 7, 2010

How to connect a new Cisco router in newly installed Linux pc what are the configuration will have to do.

View 1 Replies View Related

Software :: Gcc/g++ Compiler Switch Which Can Disable Checking Extra ISO Confirmations

Oct 11, 2010

We have a big proprietary project. Our code was compiling very properly with gcc 3.3.4 but not with 4.1.2.

The errors what we get is "ISO forbids declaration" / undefined symbols kind of.

my question is that is there any gcc/g++ compiler switch which can disable checking extra ISO confirmations and stick to our older ISO standards.

in addition to this how we can figure out what ISO standards are supported by which gcc/g++ versions

View 2 Replies View Related

CentOS 5 Server :: Setting Up Tftp-server - Cisco Switch Configurations Can Be Sent

Feb 15, 2011

I am trying to setup CentOS server 5 with tftp where the Cisco switch configs can be sent. I have the following:

[code]...

View 14 Replies View Related

General :: Tomato/DD-WRT Router To Act As Switch And Only NAT Some Port

Sep 17, 2010

I have a device that must use a real IP address. Currently, my ISP uses DHCP and I can have up to 4 real IP address assigned. However, the cable modem only have 1 ethernet port and it's connected to my router (running Tomato, but can run DD-wrt or other Openwrt if required). Question stems from how I can connect the additional device, requiring a real IP? would be to get a switch and connect to the CM, Router, and Device. But alas, I want to avoid this route, since:

my wiring cabinet in my home is drawing lots of power and heat already Device will be unprotected by any firewall unable to monitor the traffic to/from device.Besides, what would be the FUN in that? what I want to do is to configure the router, so that one of the switchport is removed from the normal br0 bridge. Instead, I want to make it behave like a switch on the WAN port. What's the best way of doing this? Should I create another bridge on the WAN & the device port? Can a single port belongs to two bridges? or would I need to create a subinterface first? Would I need a DHCP-relay? Am I expecting too much from my poor cheapie router?

+------+
| CM |
+--++--+
||
+----WAN---------------+

[code]....

View 4 Replies View Related

Networking :: Finding The Router / Switch And Wireless AP?

Jul 24, 2011

I have two laptops and a desktop. At any given moment I would like the desktop to be able to download a file over WAN at maximum speed while one laptop does the same over wireless and the other laptop shares files either wired through a gigabit switch or wireless over wireless G or N. Is this too much to ask from a router/switch/wireless AP combo unit with a single processor? I'm thinking it's at least a lot. What if I ran the modem into the WAN connection of a good router. Then connected a separate wireless G/N access point and gigabit switch to the LAN connections of the router? That seems to me like it would relieve some of the bottle necks I would encounter with the scenario described above AND allow me to upgrade each unit as needed.

View 2 Replies View Related

Networking :: Attaching Switch To Router Disables Wireless?

Dec 24, 2009

I have a wireless router with a 4-port switch built in. The router is a Linksys WRT310N. I have more than 4 devices that I would like to connect through wired connections...so I have an 8 port switch that I connect into one of the 4 ports on the back of the router. Whenever I do this, the wireless functionality stops working! To get wireless back, I just have to unplug the gigabit switch (and unplug/plug in the router) and wireless is back up and running.

It doesn't seem to matter which port I plug the switch into so that isn't the cause of this. Also, I can connect up 4 devices where none of them is a switch (i.e. 4 computers) and wireless still works just fine -- so it doesn't seem to be a problem that there are 4 devices attached. when the switch is connected to my router, the devices behind it work just fine. However, the wireless devices all obtain 169.254.*.* addresses so clearly the clients are failing to obtain an address from the router (the DHCP server).

View 9 Replies View Related

Networking :: Layer 2 Switch - VLAN Router To Network

May 15, 2009

Our ISP provides us with Layer 2 hardware (Modem?/Switch? (Hatteras)) for our leased line and internet access. I have been told that I should set up a VLAN capable router to separate the internet traffic from the internal traffic. I found that linux is capable of VLAN routing. Nice!

I have setup opensuse 10.3 put in two NICs and did the following
vconfig add eth0 10
vconfig add eth0 20
ifconfig public.ip.add.ress netmask 255.255.255.252 eth0.10 up
ifconfig 192.168.0.1 netmask 255.255.255.0 eth0.20 up

Plugged this NIC into the HATTERAS hardware (with a straight cable), and thought that this way I should be able to ping the public gateway or any ip out on the internet. My ISP is telling me that I should create a VLAN trunk to be able to 'use the internet', but as I understand in linux if I create any number of VLANs on one NIC they are already trunked. I also got the info, that the traffic is tagged, and I can separate the traffic reading the tags. I already read that some NICs are not able to VLAN because they are not able to handle the increased packet size.

Also that the MTU setting is important (dono' the exact value though, only that its important). I thought that a linux machine can act as a router and firewall in such a case, because proprietary switches/routers use linux as embedded os. This is my first meeting with VLAN so if this whole post does not make any sense or you think that I just need to RTFM more then tell me! I also have some (3) Dlink 3226 Layer2 switches around, but I think it would be waste to use a 24 port switch on this subject.

View 12 Replies View Related

Debian :: After Lenny Install - Switch To Enable Auto Updates?

Jan 20, 2010

On one PC i get automatic updates allmost every day and on the other PC i haven't gotten an auto-update since the install. apt-get update runs ok. I have seen from other posts here, that stable distros are supposed to get only security updates. Why, tho, does one PC get auto-updates, the other not? Is there some switch to enable auto-updates?

View 2 Replies View Related

OpenSUSE Hardware :: Connected To A Fast Ethernet Switch Or Directly Into The ADSL Router?

Jan 5, 2010

Using SuSE 11.2 can anybody suggest a decent compatible Ethernet / Network Colour Printer. Just a printer not a multifunction device. The printer will be connected to a Fast Ethernet Switch or directly into the ADSL Router.

View 4 Replies View Related

Ubuntu Servers :: Dhcp Doesnt Work Unless Put A Switch Or Router Between Gateway And Connecting Computer

Sep 30, 2010

The dhcp doesnt work unless i put a switch or router between the ubuntu gateway and the connecting computer.

setup

Code:

Code:

Code:

Code:

Im on ubuntu 10.04. is this normal? or should i be able to connect without having a router or switch between the ubuntu server and the internal network....

View 3 Replies View Related

Programming :: Checking For Alphabets ?

Jan 25, 2010

Code:

I am trying to do a search to check if the input is using alphabets and nothing else.

I tried using [[:digit:]] and [[:alpha:]] but none seems to work

When i use digit, it read 22.k as alphabet and not as a wrong syntax.

For alpha , it does not allow me to input data which has spaces such as " hello world".

View 1 Replies View Related

Programming :: Checking IP's Against A Whole Lot Of DNSBL's

Dec 17, 2010

@work we use Zabbix and also IP-audit for monitoring. Each day we have a list of outgoing SMTP-servers on our IPaudit server.

This script will take that list and check them all against a whole bunch of DNSBL's

# cat /usr/local/sbin/check_rbl

Code:
#!/bin/bash
#####################################################
# check_rbl
#####################################################
# 17-12-2010 by JP van Melis
#

[Code].....

View 15 Replies View Related

Programming :: Checking Input Is Numerical?

Jan 18, 2010

what i am trying to do is to allow the user to key in data such as "23.23" or "24" , as it is the price of certain objectsHow am i able to design a check which will allow me to prevent users from typing in input such as "ab.21" or "rfrr" as this field is purely a numerical field. The problem i am facing is i tried using this search code.

Code:
echo "read this"
read this

[code]....

View 14 Replies View Related

Ubuntu Networking :: Unable To Access HDD Connected To Belkin Router / Enable This?

Jun 21, 2010

I have an external hard drive connected to my router. From Windows I can access it, but from Ubuntu I can see the hard drive, but when I try to access, I'm asked for a password. However my network does not have a password neither the hard drive.
What must I do?

View 9 Replies View Related

Programming :: C - System Call & Error Checking?

Sep 18, 2010

I am trying to figure out how i would go about finding out where system call is made and error checking is not done. I have code below, if somebody can point me in the right direction where system call is made but error checking is not done.Quote:

#include "shell.h"
#include <stdio.h>
#include <string.h>

[code]....

View 5 Replies View Related

Programming :: Checking Amount Of System Memory?

Nov 8, 2010

I need to allocate a % of the total system memory for a buffer but what is the best method to determine how much memory is in the system? So far the only way I have found is to get the pages of memory:

Code:
long sysconf(_SC_PHYS_PAGES)
Is that the only option?

View 2 Replies View Related

Programming :: Checking If A Icecast Stream Is Active

Apr 20, 2010

I run my own icecast2 server. In the near future it looks like, I will be doing some shows. I would like to beable to change my link, so if I am broadcasting, to go to the stream if not pop a box for my schedule.Now from when I was checking to see if my webcam was up or not, i used this.does anyone know haw to change my code for this? I know when I'm not stream it generates a 404 error, in winamp (on windows)

View 3 Replies View Related

Programming :: Checking Of Input In Roman Program?

Apr 11, 2010

i have to write a program which checks the information inside a text file to make sure it is all integers and then convert the integers to roman Numerals. My program seems to have a bit of a problem and im not sure where exactly the problem is....

Code:
#include<stdlib.h>
#include<string>

[code]....

View 8 Replies View Related

Programming :: Checking Os And Process State At Run Time?

May 11, 2010

How can i check what operating system, i am running on, at run time?Moreover, how can i retrieve that current state of process?

View 4 Replies View Related

Programming :: Checking Database It Running Or Not By Using Shell Script?

Jul 21, 2011

1. i need to check whether the oracle database is running or not if it is running it will run auto mount script.nohup /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbfs_client dbfs@xxxxx -o allow_other,direct_io /u01/app/oracle/DBFS/XXXXX < /home/oracle/passwd_dbfs.txt&nohup /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbfs_client dbfs@xxxxxx -o allow_other,direct_io /u01/app/oracle/DBFS/XXXXX < /home/oracle/passwd_dbfs.txt &2. For every 1 hour i need to check above mount points is mounted or not if it is not mounted it should be mounted.

View 3 Replies View Related

Programming :: Checking List Of Logged In Users - Without Logging Into Pc

Jul 17, 2010

It is possible to check who logged in with "who" command. If we are also logged in to that linux pc.

But, is there any possibility to check without our login?(not even by ssh)

Our logging in to find that pc, will be wasting the cpu resources. And may disturb the user who is working on the x-session.

View 7 Replies View Related

Programming :: Certain Book Search - Checking Of Case Insensitive

Jan 19, 2010

I am trying to do a search for the certain books, and I am trying to make it case insensitive. what I have come up with so far is this :

Code:
Database.txt
RETARDED MONKEY:RACHEAL ABRAHAML:30:30:20
GOLD:FATIN:23.20:12:3
StUPiD:JERLYN:20:40:3

Code:
echo -n "Title: "
read Title
echo -n "Author:"
read Author
echo ""
valuecheck='grep -i "$Title" Database.txt | grep -i "$Author" | awk -F":" '{ print $1}''
echo $valuecheck
if [ $Title = $valuecheck ] ; then
echo "HOHOHO"
else
echo "too bad"
fi

The issue which I am having is that, when it does the search for the correct row to be inputted into valuecheck, it will input the value as written in the database, which is in Uppercase. For this case, if I type in stupid for $Title and jerlyn for $Author, it searches the correct row, but the awk will print "STUPID" into the variable as that is what is written in the database. So how can I make my if statement case insensitive? Currently it reads like this:

Code:
if [ $Title = $valuecheck ] ; then
which means
if [stupid = StUPiD ] ; then

How can I make the if statement it case insensitive to allow it to display "HOHOHO"

View 5 Replies View Related

Programming :: Checking Pattern But Ignoring Multiple Space?

Apr 8, 2010

i am searching a string(with multiple words) in a file that file contains the string but words are separated with multiple white space.

ex: pattern to be matched "hello how are you" all single white space and file contains " hello how are you" variable white space between words

grep "pattern" file_in_which_to_search i am reading the "pattern" so i cannot modify the "pattern"

so my pattern match does not take place, though i want it to match.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved