Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 1997 22:41:34 +0000
From:      "Riley J. McIntire" <rileyj@tgci.com>
To:        spork <spork@super-g.com>
Cc:        isp@FreeBSD.ORG
Subject:   Re: Moving server to different ethernet can I use the same IP #s
Message-ID:  <199709030556.WAA25211@train.tgci.com>
In-Reply-To: <Pine.BSF.3.96.970903011329.10455B-100000@super-g.inch.com>
References:  <199709030415.VAA24888@train.tgci.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From:          spork <spork@super-g.com>
> To:            "Riley J. McIntire" <rileyj@tgci.com>

I really appreciate the info--I'm not comfortable with the cisco at 
all.   Do you mind being a little more specific?

> You came real close, you want to do exactly what you just did to
> your machine on the Cisco as well... ie:
> 
> enable
> conf t
> 
> int eth ?
> 
> ip address old.net.here. mask secondary

Not quite sure about the above--what is secondary?  the old ip 
address?  Like this

int new.eth.ip.here old.net.here 255.255.255.0 old.ip.here

so

int 205.185.169.120 206.250.85.0 255.255.255.0 206.250.85.99

???
> 
> exit
> wr mem
> 
> This will put a second address on the cisco, and "automagically"
> make it see the your machine with the old number.
> 
> The question is, does the rest of the internet know that this net is
> reachable through this router?  This is a nice hack to transition
> from one provider to another with a router from Provider A and one
> from Provider B on the same ethernet and all hosts answering to two
> IPs, but otherwise, it will not really accomplish anything as all
> traffic to these IPs will still head towards your original router. 

After thinking this through, I tend to agree it won't accomplish 
much...I only have the new router here...and the old network was a 
kludged effort at subnetting which I'm sure wasn't right (like I said 
I didn't set it up--but I do need to set one up properly here).

> If you do have two providers on the same wire, be sure to give
> *both* routers addresses on the other's net. And try to avoid
> running RIP, as I believe it could cause quite a mess...

Router is enabled and has been in rc.conf, but I did enable 
gateway--this runs RIP?  Should I shut it down?  I think I'll do it 
now until I find out...gateway is now off.  

I recall seeing some cautions here about using routed--do I need it?  
I was told to use it before I knew to be skeptical about the advice I 
was getting.  :(

> Charles
> 

Again, thanks for the advice!

Riley

> On Tue, 2 Sep 1997, Riley J. McIntire wrote:
> 
> > Hi, and help!,
> > 
> > I've had to make a quick  move of a web/mail/dns server.  An involved 
> > story, but the old network is moving and the router was moved.
> > I have use of the existing IP numbers for a bit, and need to use 
> > these until I can change them through the internic.  I've physically 
> > moved the server to another ethernet with a different gateway and 
> > want to know how (if possible!) to set this up.  The web server is 
> > most important, although no one is paying for this yet...
> > 
> > At first I just tried adding a new gateway, but that didn't seem to 
> > work.
> > 
> >  What I've tried so far is bind an ip # from the new net to the 
> > interface.  I can telnet to this ip number from the new network.
> > The default gateway is now 205.185.169.1 (a cisco 2500)
> > Do I need to add a route from the cisco to the old numbers?  How? 
> > Speaking of which, the numbers are 206.250.85.99 to x.x.x.109.
> > 
> > 
> > I'm using fbsd 2.2.2-R
> > 
> > Parts of rc.conf, rc.local and /var/log/messages follow.
> > 
> > If this can be done at all any help is appreciated. 
> > 
> > tia,
> > 
> > Riley
> > 
> > 
> > (Note- most of the network portions of rc.conf and rc.local were 
> > configured by someone else--I'm a bit new to this!  )
> > 
> > Here's the pertinent part of rc.conf:
> > 
> > ### Basic network options: ###
> > hostname="charmed.wilshire.net" # Set this!
> > nisdomainname="NO"              # Set to NIS domain if using NIS (or NO).
> > firewall="NO"                   # Set to firewall type or NO for none.
> > tcp_extensions="YES"            # Allow RFC1323 & RFC1544 extensions (or NO).
> > network_interfaces="ed1 lo0"    # List of network interfaces (lo0 is loopback).
> > 
> > ##old network 206.250.85.0
> > #ifconfig_ed1="inet 206.250.85.80 netmask 255.255.255.0"
> > ##net network 205.185.169.0
> > ifconfig_ed1="inet 205.185.169.120 netmask 255.255.255.0"
> > 
> > ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
> > 
> > ### Network daemon (miscellaneous) & NFS options: ###
> > syslogd_enable="YES"            # Run syslog daemon (or NO).
> > syslogd_flags=""                # Flags to syslogd (if enabled).
> > inetd_flags=""                  # Optional flags to inetd (always enabled).
> > named_enable="YES"              # Run named, the DNS server (or NO).
> > named_flags="-b /etc/namedb/named.boot"         # Flags to named (if enabled).
> > kerberos_server_enable="NO"     # Run a kerberos master server (or NO).
> > rwhod_enable="NO"               # Run the rwho daemon (or NO).
> > amd_enable="NO"                 # Run amd service with $amd_flags (or NO).
> > amd_flags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map"
> > nfs_client_enable="NO"          # This host is an NFS client (or NO).
> > nfs_server_enable="NO"          # This host is an NFS server (or NO).
> > weak_mountd_authentication="NO" # Running PCNFSD / other non-root nfsd (or NO).
> > nfs_reserved_port_only="NO"     # Provide NFS only on secure port (or NO).
> > rpc_lockd_enable="NO"           # Run NFS rpc.lockd (*broken!*) if nfs_server.
> > rpc_statd_enable="YES"          # Run NFS rpc.statd if nfs_server (or NO).
> > portmap_enable="YES"            # Run the portmapper service (or NO).
> > portmap_flags=""                # Flags to portmap (if enabled).
> > xtend_enable="NO"               # Run the X-10 power controller daemon.
> > xtend_flags=""                  # Flags to xtend (if enabled).
> > 
> > [snip time and info services]
> > 
> > ### Network routing options: ###
> > defaultrouter="205.185.169.1" # Set to default gateway (or NO).
> > static_routes=""                # Set to static route list (or leave empty).
> > # Enable gateway for 206.250.85.0 to 205.185.169.0 9/2/97 rjm
> > gateway_enable="YES"            # Set to YES if this host will be a gateway.
> > router_enable="YES"             # Set to YES to enable a routing daemon.
> > router="routed"                 # Name of routing daemon to use if enabled.
> > router_flags="-q"               # Flags for routing daemon.
> > mrouted_enable="NO"             # Do multicast routing (see /etc/mrouted.conf)
> > ipxgateway_enable="NO"          # Set to YES to enable IPX routing.
> > ipxrouted_enable="NO"           # Set to YES to run the IPX routing daemon.
> > ipxrouted_flags=""              # Flags for IPX routing daemon.
> > arpproxy_all=""                 # obsolete kernel option ARP_PROXY_ALL equiv.
> > 
> > Here's the pertinent rc.local
> > 
> > # put your local stuff here
> > 
> > /sbin/ifconfig ed1 alias 206.250.85.99 netmask 255.255.255.0 up
> > /sbin/ifconfig ed1 alias 206.250.85.100 netmask 255.255.255.0 up
> > /sbin/ifconfig ed1 alias 206.250.85.105 netmask 255.255.255.0 up
> > /sbin/ifconfig ed1 alias 206.250.85.106 netmask 255.255.255.0 up
> > /sbin/ifconfig ed1 alias 206.250.85.107 netmask 255.255.255.0 up
> > /sbin/ifconfig ed1 alias 206.250.85.108 netmask 255.255.255.0 up
> > /sbin/ifconfig ed1 alias 206.250.85.109 netmask 255.255.255.0 up
> > /sbin/route add -net 205.185.169.0 -interface 205.185.169.120 -netmask
> > 255.255.0
> > 
> > /var/log/messages
> > 
> > 
> > Sep  2 20:43:10 charmed syslogd: exiting on signal 15
> > Sep  2 20:44:49 charmed /kernel: Copyright (c) 1992-1997 FreeBSD Inc.
> > Sep  2 20:44:49 charmed /kernel: Copyright (c) 1982, 1986, 1989, 1991,
> > 1993 Sep  2 20:44:49 charmed /kernel:        The Regents of the
> > University of Califo. Sep  2 20:44:49 charmed /kernel: Sep  2 20:44:49
> > charmed /kernel: FreeBSD 2.2.2-RELEASE #0: Tue Jul  8 21:37:42 7 Sep 
> > 2 20:44:49 charmed /kernel:    
> > rileyj@charmed.wilshire.net:/usr/src/sys/cD Sep  2 20:44:50 charmed
> > /kernel: CPU: Pentium (119.75-MHz 586-class CPU) Sep  2 20:44:50
> > charmed /kernel:   Origin = "GenuineIntel"  Id = 0x526  Steppin6 Sep 
> > 2 20:44:50 charmed /kernel:  
> > Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX> Sep  2 20:44:50 charmed
> > /kernel: real memory  = 33554432 (32768K bytes) Sep  2 20:44:50
> > charmed /kernel: avail memory = 30789632 (30068K bytes) Sep  2
> > 20:44:50 charmed /kernel: Probing for devices on PCI bus 0: Sep  2
> > 20:44:50 charmed /kernel: chip0 <Intel 82437VX PCI cache memory
> > controll0 Sep  2 20:44:50 charmed /kernel: chip1 <Intel 82371SB
> > PCI-ISA bridge> rev 1 on 0 Sep  2 20:44:50 charmed /kernel: chip2
> > <Intel 82371SB IDE interface> rev 0 on p1 Sep  2 20:44:50 charmed
> > /kernel: ahc0 <Adaptec 2940 SCSI host adapter> rev 0 in0 Sep  2
> > 20:44:50 charmed /kernel: ahc0: aic7870 Wide Channel, SCSI Id=7, 16
> > SCBs Sep  2 20:44:50 charmed /kernel: ahc0 waiting for scsi devices to
> > settle Sep  2 20:44:50 charmed /kernel: (ahc0:0:0): "SEAGATE ST51080N
> > 0958" type 0 fix2 Sep  2 20:44:50 charmed /kernel: sd0(ahc0:0:0):
> > Direct-Access 1030MB (2109840 5) Sep  2 20:44:50 charmed /kernel:
> > (ahc0:5:0): "TOSHIBA CD-ROM XM-3501TA 0315" ty2 Sep  2 20:44:50
> > charmed /kernel: cd0(ahc0:5:0): CD-ROM cd present [291470 x 204] Sep 
> > 2 20:44:51 charmed /kernel: Probing for devices on the ISA bus: Sep  2
> > 20:44:51 charmed /kernel: sc0 at 0x60-0x6f irq 1 on motherboard Sep  2
> > 20:44:51 charmed /kernel: sc0: VGA color <16 virtual consoles,
> > flags=0x0> Sep  2 20:44:51 charmed /kernel: ed1 at 0x260-0x27f irq 10
> > on isa Sep  2 20:44:51 charmed /kernel: ed1: address
> > 00:40:95:34:56:26, type NE2000 (1 Sep  2 20:44:51 charmed /kernel:
> > sio0 at 0x3f8-0x3ff irq 4 on isa Sep  2 20:44:51 charmed /kernel:
> > sio0: type 16550A Sep  2 20:44:51 charmed /kernel: sio1 at 0x2f8-0x2ff
> > irq 3 on isa Sep  2 20:44:51 charmed /kernel: sio1: type 16550A Sep  2
> > 20:44:51 charmed /kernel: lpt0 at 0x378-0x37f irq 7 on isa Sep  2
> > 20:44:51 charmed /kernel: lpt0: Interrupt-driven port Sep  2 20:44:51
> > charmed /kernel: lp0: TCP/IP capable interface Sep  2 20:44:51 charmed
> > /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa Sep  2 20:44:51
> > charmed /kernel: fdc0: NEC 72065B Sep  2 20:44:51 charmed /kernel:
> > fd0: 1.44MB 3.5in Sep  2 20:44:51 charmed /kernel: wdc0 not found at
> > 0x1f0 Sep  2 20:44:52 charmed /kernel: wt0 at 0x300-0x301 irq 5 drq 1
> > on isa Sep  2 20:44:52 charmed /kernel: wt0: type <Wangtek> Sep  2
> > 20:44:52 charmed /kernel: npx0 flags 0x1 on motherboard Sep  2
> > 20:44:52 charmed /kernel: npx0: INT 16 interface Sep  2 20:44:52
> > charmed /kernel: ccd0-3: Concatenated disk drivers Sep  2 20:44:52
> > charmed named[78]: starting.  named 4.9.4-P1 Fri May 16 13:45:2d Sep 
> > 2 20:44:52 charmed named[79]: Ready to answer queries. Sep  2 20:44:56
> > charmed lpd[112]: restarted Sep  2 20:45:02 charmed routed[55]: punt
> > RTM_ADD without gateway Sep  2 20:45:02 charmed routed[55]:
> > write(rt_sock) RTM_ADD 206.250.85.0 --> 206s Sep  2 20:50:03 charmed
> > su: rileyj to root on /dev/ttyv0
> > 
> > 
> > 
> > 
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709030556.WAA25211>