I want to do gateway on FreeBSD on HP 8460p with this web interfaces.
On wlan0 is estabish connection, I want to route it on em0 or ue0. Is it possible on this network card?
I tried to do some solution and second computer can't estabish connection.
/etc/rc.conf
/usr/local/etc/dhcpd.conf
Code:
root@komputer:/home/komputer # ifconfig -a
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
ether e4:11:5b:27:2b:fd
hwaddr e4:11:5b:27:2b:fd
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:e0:4c:53:44:58
hwaddr 00:e0:4c:53:44:58
inet 10.1.1.1 netmask 0xffffff00 broadcast 10.1.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 24:77:03:22:26:0c
hwaddr 24:77:03:22:26:0c
inet 192.168.43.112 netmask 0xffffff00 broadcast 192.168.43.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
ssid internet channel 6 (2437 MHz 11g ht/20) bssid 64:db:43:49:78:81
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 10 scanvalid 60
protmode CTS ampdulimit 64k -amsdutx amsdurx shortgi -stbc wme
roaming MANUAL
groups: wlan
On wlan0 is estabish connection, I want to route it on em0 or ue0. Is it possible on this network card?
I tried to do some solution and second computer can't estabish connection.
/etc/rc.conf
Code:
ifconfig_ue0="inet 10.1.1.1 netmask 255.255.255.0"
#create_args_ue0="mode hostap"
#create_args_ue0="wlanmode hostap"
#hostapd_enable="YES"
gateway_enable="YES"
defaultrouter="192.168.43.1"
dhcpd_enable="YES"
dhcpd_ifaces="ue0"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
#dhcpd_withumask="022"
#dhcpd_flags="-q"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
/usr/local/etc/dhcpd.conf
Code:
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.10 10.1.1.254;
option broadcast-address 10.10.1.255;
option routers 10.1.1.1;
option domain-name-servers 194.204.152.34
}
Code:
root@komputer:/home/komputer # netstat -nr
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.43.1 UGS wlan0
10.1.1.0/24 link#4 U ue0
10.1.1.1 link#4 UHS lo0
127.0.0.1 link#2 UH lo0
192.168.43.0/24 link#3 U wlan0
192.168.43.112 link#3 UHS lo0