Re: [gentoo-user] One host, two NIC's...
On 2/7/06, Walter Dnes [EMAIL PROTECTED] wrote: On Sun, Feb 05, 2006 at 09:04:30PM +0100, martin nicolas wrote You may also need to adjust your routes : While we're on the subject of 2 IP addresses on 1 machine, is there a way for ppp0 to co-exist with eth0? I use a 4-port ADSL modem/router. On the few occasions that I fall back to dialup (mostly occasional tests to confirm it still works), I have to run the following (with appropriate entries in /etc/sudoers.conf)... ~/bin/dialup to connect to dialup #!/bin/bash /usr/bin/sudo /sbin/ifconfig eth0 down /usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf /usr/bin/sudo /usr/sbin/pon 295caext ~/bin/dialdown to re-connect to eth0 #!/bin/bash /usr/bin/sudo /usr/sbin/poff /usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf /usr/bin/sudo /etc/init.d/net.eth0 restart Is there a way use dialup without tearing down eth0? Check this: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printablepart=4chap=3 Bounded interfaces... -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list -- Daniel da Veiga Computer Operator - RS - Brazil -BEGIN GEEK CODE BLOCK- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ --END GEEK CODE BLOCK-- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] One host, two NIC's...
On Sun, Feb 05, 2006 at 09:04:30PM +0100, martin nicolas wrote You may also need to adjust your routes : While we're on the subject of 2 IP addresses on 1 machine, is there a way for ppp0 to co-exist with eth0? I use a 4-port ADSL modem/router. On the few occasions that I fall back to dialup (mostly occasional tests to confirm it still works), I have to run the following (with appropriate entries in /etc/sudoers.conf)... ~/bin/dialup to connect to dialup #!/bin/bash /usr/bin/sudo /sbin/ifconfig eth0 down /usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf /usr/bin/sudo /usr/sbin/pon 295caext ~/bin/dialdown to re-connect to eth0 #!/bin/bash /usr/bin/sudo /usr/sbin/poff /usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf /usr/bin/sudo /etc/init.d/net.eth0 restart Is there a way use dialup without tearing down eth0? -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] One host, two NIC's...
On 07 February 2006 04:53, Walter Dnes wrote: Is there a way use dialup without tearing down eth0? Sure. Delete your default route before dialing. Uwe -- Why do consumers keep buying products they will live to curse? -- gentoo-user@gentoo.org mailing list
[gentoo-user] One host, two NIC's...
Hey all. Linux question - I have this nice big dual Xeon server, with two NIC's. Where, how, when, why, can I configure this beast, not as a router, but just as a host with two ways to get in. eth0 is 192.168.0.39 eth1 is 192.168.1.139 I would like to be able to associate both NIC's to the same hostname, 'foo' - how is this accomplished? Thanks much! -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] One host, two NIC's...
Hi Jeff, I think you should try to adjust your /etc/hosts and put in it :192.168.0.39 192.168.1.139 fooYou may also need to adjust your routes : [EMAIL PROTECTED] add default gw 192.168.0.X 192.168.0.39[EMAIL PROTECTED] add default gw 192.168.1.X 192.168.1.139 On 2/5/06, Jeff [EMAIL PROTECTED] wrote: Hey all. Linux question - I have this nice big dual Xeon server, withtwo NIC's. Where, how, when, why, can I configure this beast, not as arouter, but just as a host with two ways to get in.eth0 is 192.168.0.39eth1 is 192.168.1.139I would like to be able to associate both NIC's to the same hostname,'foo' - how is this accomplished?Thanks much!-- gentoo-user@gentoo.org mailing list-- Martin Nicolas Master 2 I2A