Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
|
09-05-2013, 02:43 PM
|
#31
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
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.
|
|
|
09-05-2013, 05:12 PM
|
#32
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
[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..
|
|
|
09-05-2013, 05:41 PM
|
#33
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
I'm. lost.. I'll have to have a think..
can you use windows?
then note the ip/ routing and dns
|
|
|
09-06-2013, 07:42 AM
|
#34
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Quote:
Originally Posted by Firerat
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?
|
|
|
09-06-2013, 08:16 AM
|
#35
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
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.
|
09-07-2013, 12:37 AM
|
#36
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Thanks A lot firerat Sir.
It finally worked. I am accessing the forum from Linux ![Big Grin](https://www.linuxquestions.org/questions/images/smilies/biggrin.gif)
this command sets the default gateway for em1 as 10.30.6.1 right?
I am your follower now ![Big Grin](https://www.linuxquestions.org/questions/images/smilies/biggrin.gif)
Am a newbie in Linux. Please guide me how to be a pro like you. ![Hat Tip](https://www.linuxquestions.org/questions/images/smilies/emot-tiphat.gif)
|
|
|
09-07-2013, 01:50 PM
|
#37
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
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
|
|
|
09-07-2013, 02:07 PM
|
#38
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Quote:
Originally Posted by Firerat
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?
|
|
|
09-07-2013, 02:14 PM
|
#39
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
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 02:18 PM.
|
|
|
09-07-2013, 03:01 PM
|
#40
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Quote:
Originally Posted by Firerat
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
|
|
|
09-07-2013, 03:17 PM
|
#41
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by Firerat
...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 03:30 PM.
|
|
1 members found this post helpful.
|
09-07-2013, 03:18 PM
|
#42
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
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.
|
|
|
09-07-2013, 03:36 PM
|
#43
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Quote:
Originally Posted by Firerat
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. ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
|
|
|
09-07-2013, 03:38 PM
|
#44
|
LQ Newbie
Registered: Aug 2013
Posts: 24
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Quote:
Originally Posted by schneidz
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 ![Big Grin](https://www.linuxquestions.org/questions/images/smilies/biggrin.gif)
Actually am new to linux. Installed it last month itself for the first time ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
|
|
|
09-07-2013, 04:02 PM
|
#45
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
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.
|
|
|
All times are GMT -5. The time now is 01:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|