net

Link to this paste: http://bugs.dragonflybsd.org/pastes/16

Added by Anonymous almost 3 years ago.
Syntax: Plain Text

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[cocaine] ~> ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet6 fe80::da5d:4cff:fef3:74bd%re0 prefixlen 64 scopeid 0x1
        inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
        ether d8:5d:4c:f3:74:bd
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
re1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        options=19<RXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet6 fe80::f66d:4ff:fed2:93e0%re1 prefixlen 64 scopeid 0x2
        ether f4:6d:04:d2:93:e0
        media: Ethernet autoselect (none)
        status: no carrier
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2290
        ether 00:22:2d:06:91:32
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
bridge0: flags=8043<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet6 fe80::24e6:85ff:fef9:e1dc%bridge0 prefixlen 64 scopeid 0x9
        inet 10.0.1.1 netmask 0xffffff00 broadcast 10.0.1.255
        ether 26:e6:85:f9:e1:dc
        priority 32768 hellotime 2 fwddelay 15 maxage 20
        member: re1 flags=3<LEARNING,DISCOVER>
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:22:2d:06:91:32
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid freebsdap channel 1 (2412 MHz 11b)
        regdomain 96 indoor ecm authmode AUTO privacy OFF txpower 20 bmiss 7
        scanvalid 60 wme bintval 0
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 172.16.1.1 netmask 0xffffff00 broadcast 172.16.1.255
        inet6 fe80::2bd:38ff:fe0f:0%tap0 prefixlen 64 scopeid 0xb
        ether 00:bd:38:0f:00:00
        media: Ethernet autoselect
        status: active
        Opened by <unknown>


[cocaine] ~> route -n show
Routing tables

Internet:
Destination          Gateway              Flags
default              192.168.1.1         UG
10.0.1               link#9              U
127.0.0.1            127.0.0.1           UH
172.16.1             link#11             U
192.168.1            link#1              U
192.168.1.1          e0:91:f5:29:0:99    UH
192.168.1.11         1c:6f:65:24:8e:d8   UH
192.168.1.101        127.0.0.1           UGH

Internet6:
Destination          Gateway              Flags
::1                  ::1                 UH
fe80::%re0           link#1              U
fe80::da5d:4cff:fef3:74bd%re0 d8:5d:4c:f3:74:bd UH
fe80::%re1           link#2              U
fe80::f66d:4ff:fed2:93e0%re1 f4:6d:4:d2:93:e0 UH
fe80::%lo0           fe80::1%lo0         U
fe80::1%lo0          link#6              UH
fe80::%bridge0       link#9              U
fe80::24e6:85ff:fef9:e1dc%bridge0 26:e6:85:f9:e1:dc UH
fe80::%tap0          link#11             U
fe80::2bd:38ff:fe0f:0%tap0 0:bd:38:f:0:0 UH
ff01::               ::1                 U
ff02::%re0           link#1              U
ff02::%re1           link#2              U
ff02::%lo0           ::1                 U
ff02::%bridge0       link#9              U
ff02::%tap0          link#11             U


[cocaine] ~> kldstat
Id Refs Address            Size     Name
 1   15 0xffffffff80200000 100c250  kernel
 2    1 0xffffffff8120d000 2b3e8    if_tap.ko
 3    1 0xffffffff81239000 88b88    if_ath.ko
 4    3 0xffffffff812c2000 46d208   ath_hal.ko
 5    2 0xffffffff81730000 2e220    ath_rate.ko
 6    1 0xffffffff8175f000 622f78   acpi.ko
 7    1 0xffffffff81d82000 bb4f0    ahci.ko
 8    1 0xffffffff81e3e000 40770    ehci.ko
 9    1 0xffffffff82632000 34000    if_bridge.ko
10    1 0xffffffff82666000 b000     coretemp.ko


[cocaine] ~> cat /etc/rc.conf
# Basic rc.conf, adjust according to your needs
#
# Networking related stuff
hostname="cocaine.quantumachine.net"
cloned_interfaces="bridge0"
ifconfig_re0="DHCP"
ifconfig_re1="up"
#ifconfig_bridge0="addm re1 up"
#ifconfig_bridge0="inet 10.0.1.1"
wlans_ath0="wlan0"

keymap=spanish.iso15.acc.kbd
nfs_reserved_port_only="YES"
sshd_enable="YES"
usbd_enable="YES"
nfs_client_enable="YES"
rpc_umntall_enable="NO"
sendmail_enable="NO"
rpcbind_enable="NO"
syslogd_flags="-ss"
#isc_dhcpd=YES   # rcrun enable isc_dhcpd
isc_dhcpd_ifaces="bridge0"
#rc_debug="YES"

#dumpdev="/dev/serno/9VM468DY.s1b"
dumpdev="/dev/serno/9QM9CEL4.s3b"
powerd=YES      # rcrun enable powerd
dntpd=YES       # rcrun enable dntpd
moused=YES      # rcrun enable moused
moused_port="/dev/ums0"
moused_flags="-t auto"
hostapd=YES     # rcrun enable hostapd

# JAILs
#jail_enable=YES        # rcrun enable jail
#jail_interface="bridge0"    # Interface to create the IP alias on
#jail_devfs_enable="YES"  # mount devfs in the jail
#jail_procfs_enable="YES" # mount procfs in jail

#jail_list="www"
#jail_www_hostname="www.quantumachine.net"
#jail_www_rootdir="/jails/www"
#jail_www_ip="10.0.1.200"

nfs_server=YES  # rcrun enable nfs_server
mountd=YES      # rcrun enable mountd
#pf=YES # rcrun enable pf
#firewall_enable="YES"
#firewall_type="open"

ftpd_enable="YES"                # Run stand-alone ftp daemon (or NO).
ftpd_flags=""                   # Flags for ftpd, -D added implicitly.
rpc_lockd_enable=NO     # rcrun enable rpc_lockd_enable

Download