Re: Keep a wlan active without Access Point?
Bastien Nocera a écrit : > On Sun, 2009-06-14 at 12:03 +0530, Ravindra Wankar wrote: >> For one, I run apache with virtual host entries for the static IP. >> Secondly, it was just convenient. We develop web based apps and me and >> my colleagues need to access apache on each other's machines. >> Previously I could simply copy-paste a url to someone else in an email >> or a chat window. Now since I have to use localhost for myself, I have >> to keep changing "localhost" to my fully qualified hostname everytime >> I send the url to someone else. > > Install nss-mdns, make sure avahi is installed and running, and give out > your mDNS hostname. IP addresses might change, but the local hostname > (in my desktop's case, cookie.local.) will stay the same. You can also use hostnames with something else than mDNS, in case you have some centralized name server running on your network. And then just put this in your /etc/hosts file: 127.0.0.1 localhost 127.1.1.1 myVirtualHost1 127.2.2.2 myVirtualHost2 One way or the other, use hostnames; the small setup effort pays off almost immediately. Cheers, Marc ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Keep a wlan active without Access Point?
On Sun, 2009-06-14 at 12:03 +0530, Ravindra Wankar wrote: > > For one, I run apache with virtual host entries for the static IP. > Secondly, it was just convenient. We develop web based apps and me and > my colleagues need to access apache on each other's machines. > Previously I could simply copy-paste a url to someone else in an email > or a chat window. Now since I have to use localhost for myself, I have > to keep changing "localhost" to my fully qualified hostname everytime > I send the url to someone else. Install nss-mdns, make sure avahi is installed and running, and give out your mDNS hostname. IP addresses might change, but the local hostname (in my desktop's case, cookie.local.) will stay the same. ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Keep a wlan active without Access Point?
For one, I run apache with virtual host entries for the static IP. Secondly, it was just convenient. We develop web based apps and me and my colleagues need to access apache on each other's machines. Previously I could simply copy-paste a url to someone else in an email or a chat window. Now since I have to use localhost for myself, I have to keep changing "localhost" to my fully qualified hostname everytime I send the url to someone else. -- R Mattias Stahre wrote: Uhm, not really actually. Why do you want access that interface even when you are not connected to anything? You have your loopback interface (127.0.0.1) that is made to access stuff on your local computer, with or without a network. And you will probably have a entry in /etc/hosts that points your computer name to 127.0.0.1. There is no sense whatsoever to have a NIC activated, when it is not connected to anything. What is you are trying to do, that requires you to have *THAT* address available at all times? And are you sure that you not just could use the loopback interface for it? Greetings, Mattias On Jun 14, 2009, at 7:29 AM, Ravindra Wankar wrote: Before I used Network Manager to manage my connections my wireless interface would be activated on boot. Without an access point I (obviously) could not connect to the net, but I could still ping my local machine with the static IP (192.168.0.100). With Network Manager managing my connection I cannot do this. Does that make sense? -- R John Mahoney wrote: Your email does not make much sense. It may help if you explain what you are trying to accomplish. The 127.0.0.1 always returns pings because its the loopback device. If the wireless is not connected to an access point then I do not see why it would be in the routing tables. If you want a useless device with an address look into creating a dummy device and assign it the address. -- John On Sun, Jun 14, 2009 at 12:43 AM, Ravindra Wankarwrote: I have a wireless connection with a static IP address 192.168.0.100. Everything works fine when I'm connected to an Access Point. Without the access point ping returns "connect : Network is unreachable". Using 127.0.0.1 works, but I'd rather have the static IP accessible. The routing table is empty. How do I setup Network Manager so the IP is available? Thanks. -- R ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Keep a wlan active without Access Point?
Yeah, I don't even want to know why you need to do this, but I have done more obscure stuff. Network Manager does not assign an IP address to the interface until it becomes active, even if you think you have an address assigned statically. You could write a script to assign the ip at boot with "ifconfig wlan0 192.168.0.100" assuming your interface is named wlan0(I've seen them named eth0 and ath0 also) One caveat is that if NM tries to connect but cannot and disconnects it will remove the ip address you manually assigned. -- John On Sun, Jun 14, 2009 at 1:29 AM, Ravindra Wankar wrote: > > Before I used Network Manager to manage my connections my wireless > interface would be activated on boot. Without an access point I (obviously) > could not connect to the net, but I could still ping my local machine with > the static IP (192.168.0.100). With Network Manager managing my connection I > cannot do this. > > Does that make sense? > -- R > > > > John Mahoney wrote: > > Your email does not make much sense. It may help if you explain what you > are trying to accomplish. The 127.0.0.1 always returns pings because its > the loopback device. If the wireless is not connected to an access point > then I do not see why it would be in the routing tables. If you want a > useless device with an address look into creating a dummy device and assign > it the address. > > -- > John > > On Sun, Jun 14, 2009 at 12:43 AM, Ravindra Wankar wrote: > >> >> I have a wireless connection with a static IP address 192.168.0.100. >> Everything works fine when I'm connected to an Access Point. Without the >> access point ping returns "connect : Network is unreachable". Using >> 127.0.0.1 works, but I'd rather have the static IP accessible. The routing >> table is empty. How do I setup Network Manager so the IP is available? >> >> Thanks. >> -- R >> ___ >> NetworkManager-list mailing list >> NetworkManager-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/networkmanager-list >> > > > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Keep a wlan active without Access Point?
Before I used Network Manager to manage my connections my wireless interface would be activated on boot. Without an access point I (obviously) could not connect to the net, but I could still ping my local machine with the static IP (192.168.0.100). With Network Manager managing my connection I cannot do this. Does that make sense? -- R John Mahoney wrote: Your email does not make much sense. It may help if you explain what you are trying to accomplish. The 127.0.0.1 always returns pings because its the loopback device. If the wireless is not connected to an access point then I do not see why it would be in the routing tables. If you want a useless device with an address look into creating a dummy device and assign it the address. -- John On Sun, Jun 14, 2009 at 12:43 AM, Ravindra Wankarwrote: I have a wireless connection with a static IP address 192.168.0.100. Everything works fine when I'm connected to an Access Point. Without the access point ping returns "connect : Network is unreachable". Using 127.0.0.1 works, but I'd rather have the static IP accessible. The routing table is empty. How do I setup Network Manager so the IP is available? Thanks. -- R ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Keep a wlan active without Access Point?
Your email does not make much sense. It may help if you explain what you are trying to accomplish. The 127.0.0.1 always returns pings because its the loopback device. If the wireless is not connected to an access point then I do not see why it would be in the routing tables. If you want a useless device with an address look into creating a dummy device and assign it the address. -- John On Sun, Jun 14, 2009 at 12:43 AM, Ravindra Wankar wrote: > > I have a wireless connection with a static IP address 192.168.0.100. > Everything works fine when I'm connected to an Access Point. Without the > access point ping returns "connect : Network is unreachable". Using > 127.0.0.1 works, but I'd rather have the static IP accessible. The routing > table is empty. How do I setup Network Manager so the IP is available? > > Thanks. > -- R > ___ > NetworkManager-list mailing list > NetworkManager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list