From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c7a3fbeef5014bfc X-Google-Attributes: gid1164f8,public X-Google-Thread: 103eaf,c7a3fbeef5014bfc X-Google-Attributes: gid103eaf,public X-Google-Thread: 10b612,c7a3fbeef5014bfc X-Google-Attributes: gid10b612,public From: longyear@sii.com (Al Longyear) Subject: Re: routing on a box with a ppp port Date: 1996/01/09 Message-ID: <4cu9gb$3ue@maddawg.sii.com>#1/1 X-Deja-AN: 134555147 references: <7JAN199623425849@ctrvx1.vanderbilt.edu> organization: System Integrators, Inc. newsgroups: comp.unix.ultrix,comp.protocols.ppp,comp.sys.dec olived@ctrvx1.vanderbilt.edu (Don H. Olive) writes: >I've had some trouble getting the routing working once a ppp connection is >made on my ultrix box. >Here is my setup. I have a machine sitting on a class C domain with >an ethernet connection with IP address 1.2.3.4 as an example. I make a >connection via ppp throught a serial port with another machine. >Q. Should the ppp port have the same IP as the ethernet port. My guess is not. You are free to do that if you wish. Either way will work. >Q. If _no_ to the above, should the ppp port be in the same domain? > e.g. 1.2.3.5 might be a good choice. Maybe it doesn't matter. I would not suggest 'making them up'. Use one from RFC 1597 which defines IP addresses for 'private' networks. Based upon that, 1.2.3.5 is not a good choice but 10.2.3.5 will work. There is one small point to consider. The local IP address for a point-to-point link is not significant, only the IP address of the system on the other end of the link, usually called the 'peer' system. However, your local IP address will be the remote IP address to that peer system and it will be used in its routing decisions. >Q. Lets assume that the connection is made on the ppp port like > 1.2.3.5 -> 1.2.3.6. That is the ppp has address 1.2.3.5 and the connecting > machine has address 1.2.3.6. How does a packet destined for 1.2.3.7 > for instance, find its way out the ethernet port and vic versa? Routing is performed on the destination address from the IP header. If the frame has a destination for the ethernet 'port' then it will go there. >Q. Basically, how is the routing set up for a machine with two packet ports? What is a 'machine with two packet ports'? If you are asking about a system with two point-to-point network devices then again, routing for a specific IP frame is based upon the destination address in the IP header. How the frame appeared in the system is of no consequence. Point-to-point connections are not the same as a typical network style connections. Your ethernet, token ring, token bus, etc., 'network' devices deal with routing for a network. There are many systems attached to a common medium. A point-to-point connection has normally two connections. Frames sent by one system are received only by the other system. This is why things such as 'broadcast' addresses and 'netmasks' have little meaning for these devices and why the normal route to the systems on this connection are a 'host' route. >Thanks for any help and sorry if this is the wrong news group. Routing questions normally belong in the comp.protocols.tcp-ip.domains group. -- Al Longyear longyear@sii.com The above opinions do not necessarily represent those of the Management of System Integrators nor any of its subsidiaries.