-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDP10-KA MAC Address conflict #2153
Comments
Getting SIMH to do networking can be tricky. There's no ready made recipe for how to make this work. I have all but given up myself. @rcornwell or @eswenson1, do you have any advice here? |
I have managed to get pdp10-ka (and pdp10-kl) to do both chaosnet and internet networking. Here is my script for a working pdp10-ka system:
|
I think the only significant lines, above, are the "set imp" and "at imp" lines (for internet) and the "set ch" and "at ch" lines (for chaosnet). |
Thanks I will give this a try |
@eswenson1 I assume the 172.xxx.xxx.xxx addresses match your home network and 172.16.0.4 is the IP address of an ethernet adapter on the host, correct? |
No. That 172.16.0.4 address is purely internal to the SIMH/imp stack. I don't really understand how this works, but I think the 172.16.0.4/24 defines a virtual network, of which the 172.16.0.2 ip acts as the gateway, and where 172.16.0.4 is the IP of the endpoint that is bound to the guest os (e.g. ITS). @rcornwell is the expert here and perhaps he can weigh in and explain how this works. He can also answer your mpx question. This is all black magic to me -- I used values he gave me at one point. |
Ah OK that makes more sense now. |
Nice thing about this config is that it doesn’t really matter what your ITS IP address is configured as. Note I’m napping local ports 2021 and 2023. I run all three of KA, KL, and KS on this host, and I use different local port numbers (eg 3021, 3023, 4041, 4043) for the KL and KS systems. |
@oilcan-productions You should have no problems setting the MAC address to whatever you want. set imp enabled Address in the ITS is set to 10.3.0.6. This will use your local DHCP to set up an address. "set imp IP=#/mask" will set the IP address that you connect to ITS from the outside. "set imp GW=#" will set the gateway ITS talks to. @eswenson1 uses a different form to connect since he uses a WiFi connection. He uses the NAT format. With this you connect to your host at given ports. |
Thanks, @rcornwell. |
@eswenson1 Here is sort of a diagram of how networking for IMP works. ITS (10.3.0.6) -> tap (##.##.##.##/##) The stack translates all ##.##.##.## to 10.3.0.6 and translates all ITS traffic to ##.##.##.## For NAT connection you have. This maps the ports into localhost ports. Note you have to define gateway=172.16.0.2,network=172.16.0.0/24 since ITS does not appear to like talking to 10.0.0.2 addresses that are the default Slirp gateway/network. |
Thanks @rcornwell, if I set it up like above I get this again
I am launching as root 'sudo ./start vt52' |
You can set the ownership of the tap device to yourself and don't need to use root. However I wonder if your tap bridge is set up correctly, it does not appear that you are actually connecting to anything. |
I used the steps here https://github.com/simh/simh/blob/master/0readme_ethernet.txt to setup the tap device. Should I use something else? Mike |
I redid the steps and now I have the tap setup and the error is gone. Now I need to figure out how to connect from remote. |
@oilcan-productions, if you got everything working, could you please write it up and post a pull request? It would be so nice to have a clear step by step guide for this. |
@larsbrinkhoff sure I will re-open this for now because I need a few more bits of info to write it up. |
@rcornwell I see the SIMH adapter got an IP address from DHCP, 192.168.0.85. When I try to FTP to that address I see this message but the connection is stuck. Client says 'Connectred to 192.168.0,85' and hangs indefinitely.
Telnet works though. Mike |
First of all make sure you are using FTP and not SFTP. You can also try telneting to port 21 to make sure that the FTP daemon is working. @larsbrinkhoff Any idea on making sure FTPD is running correctly? |
One last question. I have no idea how to see which IP address the SIMH adapter is getting I had to log into my router and search for the MAC address. What is the best way to look it up? |
Yeah I am using FTP and it shows connected but nothing else happens. So I assume it gets to SIMH but the port is not forwarded. |
Created PR #2155 let me know if you want me to change anything |
The command "show imp" will show the DHCP address that the imp is set to. You can also in your router assign the MAC address to a fixed IP address, this is what I do. PDP10 IMP device does not map ports per say. What it does is IP address translation. It translates all packets from ITS into the address of the NIC, and all inbound packets to the same IP address to ITS. It takes care of handling ARP requests and management of DHCP if you want. Not it is possible to configure ITS to a local address and totally disable the address translation functions. The IMP device also modifies packets for FTP Data by translating the address and tracking sequestering and other functions. |
@rcornwell, first of all, check that DEVICE; TCP SYN025 is there and is the FTP server (FTPS), or a link to it. But the build script makes sure it is, so it should be. Second... there isn't much of a second step. It's difficult to debug this from ITS, since the servers are usually started by ATSIGN TCP. Like you said, try telnetting directly to port 21 and type FTP commands manually. |
@larsbrinkhoff yes DEVICE; TCP SYN025 is there |
@larsbrinkhoff I tried a build and FTP does not appear to start. |
@rcornwell What do you mean? FTP doesn't "start" until you connect to port 21 (025). There is a TCP handler for port 025 that "starts" the FTPS (ftp server) when a connection comes in over that port. |
I did some more testing and under current build FTP does not start when I try to externally connect to FTP. The process does start, however nothing happens. Commit 4b8dfa2 works. Commit de1bd31 does not work. I tried my version of pdp10-ka and the one in tools. On the older build it works, on newer it just hangs. Looking at PEEK while FTPing in I notice that on broken one FTP stays at 0025SYN, while on working version it goes to 013F10 TCP 000013. |
I opened a new issue about the FTPS problem: #2158 |
Closing this one and tracking the FTPS problem in #2158 |
I just rebuilt from scratch and used KA instead of KLH.
Everything seems to work but when running
I get the following error when the network comes up
I changed the MAC address in '~/its/out/pdp10-ka/run' to make sure it does not interfere with any of the other SIMH instances on my network but no change.
Not sure what to check next.
I can access the system locally just fine
The text was updated successfully, but these errors were encountered: