Difference between revisions of "Boot SPARC server behind NAT over the Internet from VM also behind NAT"

From Aram's Wiki
Jump to: navigation, search
Line 50: Line 50:
 
</pre>
 
</pre>
  
== Instructions
+
== Instructions ==
  
 
Install Solaris 11 (amd64) in VMware, on laptop.  
 
Install Solaris 11 (amd64) in VMware, on laptop.  

Revision as of 15:50, 7 June 2018


Topology


       +--------------------+
       |                    |
       | SPARC server       |
       | 192.168.0.60       |
       |                    |
       +--------------------+
               |                      +-------------------------------------+
               |                      |  Router #1                          |
               |                      |                                     |
               +---------------------->  84.112.126.72    (vienna.mgk.ro)   |
                                      |  192.168/24                         |
               +---------------------->                                     |
               |                      |  84.112.126.72 -> 192.160.0.100     |
       +---------------------+        |                                     |
       |                     |        +-------------------------------------+
       | z800                |                      |
       | 192.168.0.100       |                      |
       |                     |                      |
       +---------------------+       +--------------+
                                     |
                                     |                         Site #1 (Vienna)
                                     v
     +-------------------------+  Internet  +---------------------------------+
                                     ^
                                     |                         Site #2 (Sibiu)
              +----------------------+
              |
              |
      +-------------------+                +----------------------+
      | Router #2         |                |  Router #3 (Vmware)  |
      |                   |                |                      |
      | xx.xx.xx.xx       +----------------+  172.20.8.xx         |
      | 172.20/20         |                |  172.16.24/24        |
      +-------------------+                +-----------^----------+
                                                       |
                                                       |
                         +-------------------+         |
                         |  Solaris VM       |         |
                         |                   |         |
                         |  172.16.24.128    +---------+
                         |                   |
                         +-------------------+

Instructions

Install Solaris 11 (amd64) in VMware, on laptop.

Set-up SPARC AI server:

pfexec installadm create-service -a sparc 

Make a client-specific AI config:

cp /etc/netboot/{system,webboot}.conf /etc/netboot/cl.ie.nt.ip 

Edit /etc/netboot/client-ip/webboot.conf to reference client (e.g. behind NAT) IPs.

Set-up remote port forwarding:

ssh -S none -NT -R 5555:172.16.24.128:5555 -L 8080:192.168.0.1:80 z800 

Set-up SPARC machine to netboot using static IP:

setenv network-boot-arguments host-ip=192.168.0.60,router-ip=192.168.0.1,subnet-mask=255.255.255.0,file=http://192.168.0.100:5555/cgi-bin/wanboot-cgi 
boot net