Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Box have Suse, its network has got stuck, it was working good, but recently something happened, i think some bad configuration is causing this problem, i am not so good at it..
Box is pinging every ip. but doesn't connect to any ip ssh or wget or ftp any. results Connection time out.
Box's host.conf is empty. It made to work with ip addresses. "It should work with ips, but not working."
Code:
#@linux-###:~> /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:31:4E:28:6D:B6
inet addr:100.50.52.72 Bcast:100.50.52.255 Mask:255.255.255.0
inet6 addr: fe60::441:5eff:fe37:5db0/54 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20263 errors:0 dropped:109870631 overruns:0 frame:0
TX packets:458 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Interrupt:90 Memory:ac000000-ac038200
eth1 Link encap:Ethernet HWaddr 00:31:4E:28:6D:B8
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe60::441:5eff:fe37:5db0/54 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6129 errors:0 dropped:2209816 overruns:0 frame:0
TX packets:492 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
Interrupt:169 Memory:ac000000-ac038200
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:5381 errors:0 dropped:0 overruns:0 frame:0
TX packets:538 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
#@linux-###:~> ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=53 time=32.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=53 time=31.7 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=53 time=31.3 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 31.305/31.897/32.650/0.560 ms
#@linux-###:~> netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
112.41.133.0 100.50.52.10 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
100.50.52.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 100.50.52.10 0.0.0.0 UG 0 0 0 eth0
#@linux-###:~> /sbin/ifup eth0
eth0 device: Broadcom Corporation Gigabit Ethernet (rev 12)
eth0 configuration: eth-id-00:31:4E:28:6D:B8
SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
SuSEfirewall2: Warning: no interface active
SuSEfirewall2: batch committing...
SuSEfirewall2: Firewall rules successfully set
Checking for network time protocol daemon (NTPD): unused
#@linux-###:~> ssh xx.xx.xx.xx
TOO LONG WAITING I HAVE TO PRESS CRTL+C
HELP !...
Last edited by shdkpr2008; 03-09-2013 at 07:33 PM.
Reason: Mac address repeated.
Both your ethernet ports (eth0 & eth1) are configured to use the same network card (same hardware address). This will always create problems.
So please can you give us some more information.
1) How many network cards do you really have?
2) Is one of them connected to your ISP through a modem?
3) Are you trying to ssh to a local machine or one on the internet?
I have 2 cards,
eth0 and eth1 are both of different card.
eth0 one is connected to isp and gateway though which i am able to ping is 100.50.52.10.
I am trying to ssh,telnet the internet one.
Even telent to google's ip fail.
I tried to add google nameservers, in host.conf, but no luck, nothing changed, just hangs when resolve or do anything.
Firewall is off.
have you checked the firewall configuration .
make sure firewall is not blocking port 22(ssh) and port 23(telnet)also make sure port forwarding is enabled if you ssh remotely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.