Re: single machine, different IP addresses
On 8 February 2011 15:53, T o n g mlist4sunt...@yahoo.com wrote: From http://www.acme.com/software/thttpd/thttpd_man.html But this really looks Greek to me. I have to ask, why you can't or don't want to use Apache web server? It supports Virtual Hosts pretty much out of the box on Debian with a minimum of configuration changes. Adrian -- 24x7x365 != 24x7x52 Stupid or bad maths? erno hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTikYLZ9B_sU9=ri_fp9tuugz6tdnuykjdnr3m...@mail.gmail.com
Re: single machine, different IP addresses
Day Tue, 08 Feb 2011 08:44:02 +0100, you wrote: Am 08.02.11 06:53, schrieb T o n g: Hi, Is it possible to make a single machine having/answering to different IP addresses (I'm using DNSmasq as the dns server)? You can use a virtual interface: ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 IMO the better choice is to use ip tool. For example; ip a a 192.168.0.1/24 dev eth0 -- Artur 'bzyk' Frydel Nie chwal systemu przed pierwszym padem. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1le6yrv4b3b5h@bzyk.dyndns.org
Re: single machine, different IP addresses
On Tue, 08 Feb 2011 11:27:27 +0100, Artur Frydel wrote: Day Tue, 08 Feb 2011 08:44:02 +0100, you wrote: Am 08.02.11 06:53, schrieb T o n g: Hi, Is it possible to make a single machine having/answering to different IP addresses (I'm using DNSmasq as the dns server)? You can use a virtual interface: ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 IMO the better choice is to use ip tool. For example; ip a a 192.168.0.1/24 dev eth0 ip tool settings will lost after computer restarts unless you make an script that sets the data on every network reboot... I think IP alias (virtual interface) is the way to go. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.02.08.10.58...@gmail.com
Re: single machine, different IP addresses
On Tue, 08 Feb 2011 10:58:55 +, Camaleón wrote: Is it possible to make a single machine having/answering to different IP addresses (I'm using DNSmasq as the dns server)? You can use a virtual interface: ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 IMO the better choice is to use ip tool. For example; ip a a 192.168.0.1/24 dev eth0 Besides that, I need to properly configure route, and no need to worry about dns server, correct? -- I don't need a dns name for the 2nd address, just an IP is enough. ip tool settings will lost after computer restarts unless you make an script that sets the data on every network reboot... I think IP alias (virtual interface) is the way to go. How can it be possible, Camaleón? I did a search, but found out otherwise -- http://www.faqs.org/docs/Linux-mini/IP-Alias.html#KEEPSETTINGS Is it too old now (2001-01-23)? Thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/iirfjv$dq3$1...@dough.gmane.org
Re: single machine, different IP addresses
On Tue, 08 Feb 2011 13:14:39 +, T o n g wrote: Is it possible to make a single machine having/answering to different IP addresses (I'm using DNSmasq as the dns server)? You can use a virtual interface: ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 IMO the better choice is to use ip tool. For example; ip a a 192.168.0.1/24 dev eth0 Besides that, I need to properly configure route, and no need to worry about dns server, correct? -- I don't need a dns name for the 2nd address, just an IP is enough. Still need to know. ip tool settings will lost after computer restarts unless you make an script that sets the data on every network reboot... I think IP alias (virtual interface) is the way to go. How can it be possible, Camaleón? I did a search, but found out otherwise -- http://www.faqs.org/docs/Linux-mini/IP-Alias.html#KEEPSETTINGS Is it too old now (2001-01-23)? Further search lead me to, Bind Multiple IP Addresses to a Single Network Interface Card (NIC) http://www.xenocafe.com/tutorials/linux/redhat/ bind_multiple_ip_addresses_to_single_nic/index.php Add an IP address for Non-SUSE distributions http://www.oclc.org/support/documentation/ezproxy/technote/2l.htm but both need to work on network scripts located in /etc/sysconfig/ network-scripts/, which we don't have in Debian. Then, I looked into /etc/network/interfaces.examples, and add the following to my /etc/network/interfaces: auto eth0.1 iface eth0.1 inet manual pre-up vconfig add eth0.1 up ifconfig eth0 0.0.0.0 promisc up address 192.168.0.101 post-down vconfig rem eth0.1 But got this: % /etc/init.d/networking restart Reconfiguring network interfaces.../bin/sh: vconfig: not found Failed to bring up eth0.1. I need help. Thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/iirhgk$dq3$2...@dough.gmane.org
Re: single machine, different IP addresses
Camaleón noela...@gmail.com wrote: On Tue, 08 Feb 2011 11:27:27 +0100, Artur Frydel wrote: IMO the better choice is to use ip tool. For example; ip a a 192.168.0.1/24 dev eth0 ip tool settings will lost after computer restarts unless you make an script that sets the data on every network reboot... I think IP alias (virtual interface) is the way to go. It is enough to insert post-up ip addr add dev eth0 192.168.0.1/24 into the stanza of the appropriate interface. Rob -- For every problem there is one solution which is simple, neat, and wrong. -- H. L. Mencken -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/fbv728x4rl@news.lan.robgri.de
Re: single machine, different IP addresses
On Tue, 08 Feb 2011 13:47:00 +, T o n g wrote: On Tue, 08 Feb 2011 13:14:39 +, T o n g wrote: ip tool settings will lost after computer restarts unless you make an script that sets the data on every network reboot... I think IP alias (virtual interface) is the way to go. How can it be possible, Camaleón? Try and you'll see: ip add host 10.0.0.1 eth0 ifconfig eth0 And then restart the machine :-) You'll ned additional scripting rules to make that settings become persistent. I did a search, but found out otherwise -- http://www.faqs.org/docs/Linux-mini/IP-Alias.html#KEEPSETTINGS Is it too old now (2001-01-23)? No, that will work (although it needs to be customized for Debian style), but that's what I mean for additional scripting. Further search lead me to, (...) Why don't look at your own home? ;-) Howto assign multiple IP addresses http://wiki.debian.org/NetworkConfiguration#HowtoassignmultipleIPaddresses Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.02.08.14.13...@gmail.com
Re: single machine, different IP addresses
Am 08.02.11 06:53, schrieb T o n g: Hi, Is it possible to make a single machine having/answering to different IP addresses (I'm using DNSmasq as the dns server)? You can use a virtual interface: ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 Guido -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d50f442.5050...@kwirl.hopto.org