LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-28-2013, 01:06 AM   #1
Xitherius
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Unhappy Trying to set up a static ip so I can ssh in using putty on fresh centos 6.3 install


I have changed the ifcfg-eth0 file to the following

DEVICE=eth1
NM_CONTROLLED=yes
ONBOOT=yes
HWADDR=00:11:432:32:43
TYPE=Ethernet
UUID=6a129ba5-6430-40cc-b863-882ec2f3d34d
BOOTPROTO=static
NAME="System eth0"
IPADDR=184.70.179.154
NETMASK=255.255.255.252
GATEWAY=184.70.179.153
USERCTL=no
DNS1=64.59.184.13
DNS2=64.59.190.242

the DNS are the ones supplied by my network provider

here is what I get when I do ifcfg -a

[root@OHS network-scripts]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:11:432:32:43
inet addr:184.70.179.154 Bcast:184.70.179.155 Mask:255.255.255.252
inet6 addr: fe80::211:43ff:fed2:3243/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:969949 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:60630178 (57.8 MiB) TX bytes:4596 (4.4 KiB)

eth1 Link encap:Ethernet HWaddr 00:11:432:32:44
inet addr:68.149.163.231 Bcast:255.255.255.255 Mask:255.255.252.0
inet6 addr: fe80::211:43ff:fed2:3244/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1006717 errors:0 dropped:0 overruns:0 frame:0
TX packets:39330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:115359282 (110.0 MiB) TX bytes:4798815 (4.5 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

I can ssh in using the dynamic ip which is the one listed for eth1
but when I try to connect using the static ip the connection times out

can someone help please

thanks in advance,
X

Last edited by Xitherius; 01-28-2013 at 01:07 AM.
 
Old 01-28-2013, 07:37 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Have a look at the doc here -->http://www.centos.org/docs/5/html/5....aces-eth0.html

Which interface are you trying to ssh in on? There should be a file for each. The IP address showing for eth0 is what you have specified. If you are trying to ssh on eth1, then you are in the wrong config file.
 
Old 01-28-2013, 05:31 PM   #3
Xitherius
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
I am using putty

I don't know how to set up the putty client to use different interfaces. I expected that it didn't matter.
Thanks,
X
 
Old 01-28-2013, 05:53 PM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Quote:
I don't know how to set up the putty client to use different interfaces.
You just specify the IP address and correct port.

Can you ping from the clinet system to the IP address you are trying to ssh to? If not, there is a network problem to understand.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6.2 set static IP velvetbulldozer Linux - Server 6 02-26-2012 08:32 AM
how to set ssh/putty session running in disconnected mode aamerjavaid Linux - Newbie 7 07-08-2011 09:53 AM
problem using putty on openBSD 4.7 (fresh install) spatieman *BSD 5 08-02-2010 12:45 PM
setup Static IP address for centOS and access to ssh careykwong Linux - Networking 14 09-23-2009 11:02 PM
How to set up static IP/Broadband Router on CentOS to use Internet? linux_related Linux - Networking 23 09-19-2007 02:01 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration