[nos-bbs] One more dumb one... networking

Chris kc2rgw at gmail.com
Tue Nov 15 00:54:55 EST 2011


So my linux box is 192.168.1.25
Default gw for my LAN is 192.168.1.1

JNOS is 192.168.3.2

I've got tun0 up, linux ifconfig -a output

tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.3.1  P-t-P:192.168.3.2

autoexecnos lines

attach tun tun0 1500 0
#
ifconfig tun0 ipaddress 192.168.3.2
ifconfig tun0 netmask 255.255.255.0
ifconfig tun0 mtu 1500
#
# Give it a chance to come up
#
pause 1
#
# JNOS creates the TUN device, so JNOS needs to do some post configuration,
# by shelling out to the linux command line and running 'ifconfig' command.
#
shell ifconfig tun0 192.168.3.1 pointopoint 192.168.3.2 mtu 1500 up

ip forwarding is enabled on the linux box.

How do I do the following

I want to enable DNS lookups from inside jnos?

I want to allow telnet from inside jnos to reach internet hosts?

I had this working I guess two years ago and man...I lost my old config files.


-- 
73      de     Chris       KC2RGW
-----------------------------------------------
˙dn ǝpıs ʇɥƃıɹ ɹoʇıuoɯ ɹnoʎ uɹnʇ
ǝsɐǝןd 'sıɥʇ ƃuıpɐǝɹ ǝɹɐ noʎ ɟı




More information about the nos-bbs mailing list