LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-05-2013, 01:43 PM   #31
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783

Sorry.. I missed your earlier post..

can you confirm that /etc/resolv.conf still contains the google DNS ? ( 8.8.8.8 )

also try and ping without a DNS look up

Code:
ping www.google.com
PING www.google.com (173.194.34.84) 56(84) bytes of data.
Code:
ping 173.194.34.84
 
Old 09-05-2013, 04:12 PM   #32
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
[root@champ-pc ~]# cd /home/champ/test/CyberoamLinuxClient/
[root@champ-pc CyberoamLinuxClient]# ./crclient -u sooraj -i em1
[root@champ-pc CyberoamLinuxClient]# ps
PID TTY TIME CMD
1857 pts/0 00:00:00 su
1864 pts/0 00:00:00 bash
2039 pts/0 00:00:00 crclient
2041 pts/0 00:00:00 ps
[root@champ-pc CyberoamLinuxClient]# ping 10.30.6.1
PING 10.30.6.1 (10.30.6.1) 56(84) bytes of data.
64 bytes from 10.30.6.1: icmp_seq=1 ttl=64 time=2.89 ms
64 bytes from 10.30.6.1: icmp_seq=2 ttl=64 time=2.86 ms
^C
--- 10.30.6.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.867/2.881/2.896/0.055 ms
[root@champ-pc CyberoamLinuxClient]# ping 173.194.34.84
connect: Network is unreachable
[root@champ-pc CyberoamLinuxClient]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.30.6.0 * 255.255.255.0 U 1 0 0 em1
[root@champ-pc CyberoamLinuxClient]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 10.30.6.1
nameserver 182.48.254.5
[root@champ-pc CyberoamLinuxClient]#


i think the problem is that i m still not getting logged in... i hope so..
 
Old 09-05-2013, 04:41 PM   #33
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I'm. lost.. I'll have to have a think..



can you use windows?

then note the ip/ routing and dns
 
Old 09-06-2013, 06:42 AM   #34
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Firerat View Post
I'm. lost.. I'll have to have a think..



can you use windows?

then note the ip/ routing and dns
yes i am accessing the same net through windows.. same ip.. same gateway...
see in the above comment when i checked the route it is showing * at the place of gateway.. what does that mean? Is there a problem with the client?
 
Old 09-06-2013, 07:16 AM   #35
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
actually, that does look a little messed up

try this
Code:
ip route add default via 10.30.6.1 dev em1
 
2 members found this post helpful.
Old 09-06-2013, 11:37 PM   #36
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Thanks A lot firerat Sir.
It finally worked. I am accessing the forum from Linux
this command sets the default gateway for em1 as 10.30.6.1 right?
I am your follower now
Am a newbie in Linux. Please guide me how to be a pro like you.
 
Old 09-07-2013, 12:50 PM   #37
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
lets not get too excited...
I failed to notice it myself

anyway , the next thing to do is make that convenient.

I'm not familiar with Fedora , I know it sometimes does things a little differently

I suppose the easiest way is to simply add that "ip route add " to a script that first starts ./crclient

example
$HOME/bin/StartNet.sh
Code:
#!/bin/bash
/path/to/crclient -u sooraj -i em1
ip route add default via 10.30.6.1 dev em1
Code:
chmod 700 $HOME/bin/StartNet.sh
but ultimately having your network manager it 'manage' it would be better
 
Old 09-07-2013, 01:07 PM   #38
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Firerat View Post
lets not get too excited...
I failed to notice it myself

anyway , the next thing to do is make that convenient.

I'm not familiar with Fedora , I know it sometimes does things a little differently

I suppose the easiest way is to simply add that "ip route add " to a script that first starts ./crclient

example
$HOME/bin/StartNet.sh
Code:
#!/bin/bash
/path/to/crclient -u sooraj -i em1
ip route add default via 10.30.6.1 dev em1
Code:
chmod 700 $HOME/bin/StartNet.sh
but ultimately having your network manager it 'manage' it would be better
So basically you want me to create a Shell Script file to do it in one time right?
 
Old 09-07-2013, 01:14 PM   #39
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
that is up to you,
but ultimately it will make life a little easier


better still would be integrating it with Fedora's networking scripts, so you need not do anything when you boot.

I'll take a look at Fedora after the weekend,


edit:
actually, that 'script' I posted, at least the ip route add is going to need root.

and thinking about it, did you try crclient as root?
with root it might set the routing up itself.

Last edited by Firerat; 09-07-2013 at 01:18 PM.
 
Old 09-07-2013, 02:01 PM   #40
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Firerat View Post
that is up to you,
but ultimately it will make life a little easier


better still would be integrating it with Fedora's networking scripts, so you need not do anything when you boot.

I'll take a look at Fedora after the weekend,


edit:
actually, that 'script' I posted, at least the ip route add is going to need root.

and thinking about it, did you try crclient as root?
with root it might set the routing up itself.
yeah i did it with root too... it still was not doing that...
i dont know how to integrate it with networking script :|
m noob :P
 
Old 09-07-2013, 02:17 PM   #41
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Firerat View Post
...anyway , the next thing to do is make that convenient.

I'm not familiar with Fedora , I know it sometimes does things a little differently

I suppose the easiest way is to simply add that "ip route add " to a script that first starts ./crclient

...

but ultimately having your network manager it 'manage' it would be better
i would put the startup command in the systems /etc/rc.local file.

or you can put an @reboot declaritive in the users crontab.

else you can add it to the users .bash_profile but it will only run when that specific user logs in.

Last edited by schneidz; 09-07-2013 at 02:30 PM.
 
1 members found this post helpful.
Old 09-07-2013, 02:18 PM   #42
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
For now run that 'script', slight modification to get root for ip route

Code:
#!/bin/bash
/path/to/crclient -u sooraj -i em1
su -c "/sbin/ip route add default via 10.30.6.1 dev em1"
alternatively, if you have sudo
Code:
#!/bin/bash
/path/to/crclient -u sooraj -i em1
sudo /sbin/ip route add default via 10.30.6.1 dev em1
I will look at Fedora with a view to better integration , but won't be until next week.
 
Old 09-07-2013, 02:36 PM   #43
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Firerat View Post
For now run that 'script', slight modification to get root for ip route

Code:
#!/bin/bash
/path/to/crclient -u sooraj -i em1
su -c "/sbin/ip route add default via 10.30.6.1 dev em1"
alternatively, if you have sudo
Code:
#!/bin/bash
/path/to/crclient -u sooraj -i em1
sudo /sbin/ip route add default via 10.30.6.1 dev em1
I will look at Fedora with a view to better integration , but won't be until next week.
thats not a problem sir. take your time. I will manage with this.
And please guide me.
 
Old 09-07-2013, 02:38 PM   #44
soorajthechamp
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
i would put the startup command in the systems /etc/rc.local file.

or you can put an @reboot declaritive in the users crontab.

else you can add it to the users .bash_profile but it will only run when that specific user logs in.
sir first two lines went over my head.
i understood the last one a bit
Actually am new to linux. Installed it last month itself for the first time
 
Old 09-07-2013, 03:02 PM   #45
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
the /etc/rc.local is a good way to start things on boot,
rc.local is executed on boot , after all of the other boot scripts have run.

it runs as root so no problems with the "ip route add"


I like the crontab, never thought of that myself.

as root, crontab -e
and add the following lines at the bottom
Code:
@reboot /path/to/crclient -u sooraj -i em1 && \
        /sbin/ip route add default via 10.30.6.1 dev em1

some background on cron{tab}
https://en.wikipedia.org/wiki/Cron

cron is useful for doing boring stuff., automatically

for example I have this to update flashplugin

Code:
0 1 * * * /usr/sbin/update-flashplugin-nonfree --install
I think it was Evo2 who pointed out to me that package mangers don't keep flash updated. so I added that cron job to do it for me.
 
  


Reply



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
Connect my netbook to wireless but it wont connect to the internet but it did . Haydn456MJW Linux - Newbie 7 01-26-2011 05:56 PM
Kubuntu - Can't connect to the internet, but can connect to the LAN KellyT Linux - Networking 1 11-12-2009 04:17 AM
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 04:22 AM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 08:28 PM
how i connect (bridging) two internet connection and how to use that both the connect karthi26 Linux - Newbie 1 08-26-2007 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:05 PM.

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
Open Source Consulting | Domain Registration